Skip to content

Commit

Permalink
more things
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord committed May 27, 2014
0 parents commit f149d54
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
24 changes: 24 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env node

var ghauth = require('ghauth')
var minimist = require('minimist')
var getIssues = require('index.js')

var argv = minimist(process.argv.slice(2));

var ghAuthOptions = {
// ~/.config/[configName].json will store the token
configName : 'offline-issues',
// (optional) whatever GitHub auth scopes you require
scopes : [ 'repo' ],
// (optional) saved with the token on GitHub
note : 'This token is for the offline-issues module from NPM'
}

ghauth(ghAuthOptions, function(err, token) {
if (err) console.log(err)
getOptions(token)

// var token = { user: 'username',
// token: 'TOKEN' }
})
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var request = require('request')
var mkdirp = require('mkdirp')
var GitHub = require('github-api')

module.exports = function getIssues(options) {



}
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "offline-issues",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"bin": "cli.js",
"license": "ISC",
"dependencies": {
"ghauth": "^0.1.1",
"github-api": "^0.7.0",
"minimist": "^0.1.0",
"mkdirp": "^0.5.0",
"request": "^2.36.0"
}
}

0 comments on commit f149d54

Please sign in to comment.