Permalink
Browse files

[dist] Updates for JSHint in bin/*

  • Loading branch information...
indexzero committed Oct 9, 2011
1 parent f7575f9 commit a61e6bec1a397a52ee543c6bc5e02f9165aba9a2
Showing with 18 additions and 19 deletions.
  1. +14 −14 bin/forever
  2. +4 −5 bin/foreverd
View
@@ -25,7 +25,7 @@ var action, accepts = [
];
if (accepts.indexOf(process.argv[2]) !== -1) {
- action = process.argv.splice(2,1)[0];
+ action = process.argv.splice(2, 1)[0];
}
var argv = require('optimist').boolean(['v', 'verbose', 'a', 'append', 's', 'silent', 'w', 'watch', 'plain']).argv;
@@ -81,18 +81,18 @@ var help = [
''
].join('\n');
-function isSimpleAction () {
+function isSimpleAction() {
return [
- 'config',
- 'list',
- 'stopall',
- 'cleanlogs',
- 'service-install',
- 'service-start',
- 'service-stop',
- 'service-restart'
- ].indexOf(action) !== -1;
-};
+ 'config',
+ 'list',
+ 'stopall',
+ 'cleanlogs',
+ 'service-install',
+ 'service-start',
+ 'service-stop',
+ 'service-restart'
+ ].indexOf(action) !== -1;
+}
//
// Show help prompt if requested or if the
@@ -258,7 +258,7 @@ if (argv.d || argv.debug) {
if (action === 'set') {
//
- // If this is a set action then get the first
+ // If this is a set action then get the first
// value from the options and continue.
//
options = options.options[0];
@@ -267,7 +267,7 @@ else if (action === 'columns') {
//
// Otherwise if this is a `forever columns`
// operation then update the action, options,
- // and file then continue.
+ // and file then continue.
//
action = [action, file];
options = options.options;
View
@@ -1,10 +1,9 @@
#!/usr/bin/env node
-var clip = require('clip');
+var Clip = require('clip');
+
+var app = new Clip();
-var app = new clip();
-console.log("FOREVERD")
require('../lib/foreverd/cli')(app);
-console.log("FOREVERD LOADED")
+
app.run();
-console.log("FOREVER RAN")

0 comments on commit a61e6be

Please sign in to comment.