Organise action requires close to their use in app.coffee

This commit is contained in:
Juan Cruz Viotti 2014-11-18 11:40:12 -04:00
parent 5c53829812
commit c41b28d4f0

View File

@ -3,13 +3,12 @@ packageJSON = require('../package.json')
data = require('./data/data') data = require('./data/data')
config = require('./config') config = require('./config')
auth = require('./actions/auth')
app = require('./actions/app')
program.version(packageJSON.version) program.version(packageJSON.version)
# ---------- Auth Module ---------- # ---------- Auth Module ----------
auth = require('./actions/auth')
program program
.command('login <username:password>') .command('login <username:password>')
.description('Login with your resin.io account') .description('Login with your resin.io account')
@ -22,6 +21,8 @@ program
# ---------- App Module ---------- # ---------- App Module ----------
app = require('./actions/app')
program program
.command('apps') .command('apps')
.description('Show a list of your apps') .description('Show a list of your apps')