Skip to content

Commit b605594

Browse files
Tyler Kellenphated
authored andcommitted
Update: Add process title & improve callback invocation
1 parent 3deffe5 commit b605594

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/hacker.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var Liftoff = require('liftoff');
66
var Hacker = new Liftoff({
77
localDeps: ['hacker'],
88
configName: 'hackerfile',
9+
processTitle: 'hacker',
910
cwdOpt: 'cwd',
1011
requireOpt: 'require'
1112
}).on('require', function (name, module) {
@@ -14,8 +15,9 @@ var Hacker = new Liftoff({
1415
}
1516
}).on('requireFail', function (name, err) {
1617
console.log('Unable to load:', name, err);
17-
}).on('run', function () {
18+
});
1819

20+
Hacker.launch(function() {
1921
if(this.args.verbose) {
2022
console.log('CLI OPTIONS:', this.args);
2123
console.log('CWD:', this.cwd);
@@ -32,9 +34,8 @@ var Hacker = new Liftoff({
3234
if(this.configPath) {
3335
process.chdir(this.configBase);
3436
require(this.configPath);
37+
console.log(this);
3538
} else {
3639
console.log('No Hackfile found.');
3740
}
3841
});
39-
40-
Hacker.launch();

0 commit comments

Comments
 (0)