Skip to content

Commit

Permalink
[dist] Updates for JSHint in bin/*
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 9, 2011
1 parent f7575f9 commit a61e6be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
28 changes: 14 additions & 14 deletions bin/forever
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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];
Expand All @@ -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;
Expand Down
9 changes: 4 additions & 5 deletions bin/foreverd
Original file line number Diff line number Diff line change
@@ -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.