mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 00:10:15 +00:00
chore: move use.txt to help/ folder
This commit is contained in:
parent
98f20c368c
commit
a5739f337f
14
dist/cli/main.js
vendored
14
dist/cli/main.js
vendored
@ -92,15 +92,11 @@ Definition of the `main` function.
|
|||||||
x = splitSrcDest.call(this);
|
x = splitSrcDest.call(this);
|
||||||
execute.call(this, x.src, x.dst, this.opts(), logMsg);
|
execute.call(this, x.src, x.dst, this.opts(), logMsg);
|
||||||
});
|
});
|
||||||
program.command('help')["arguments"]('[command]').description('Get help on a HackMyResume command').action(function(command) {
|
program.command('help')["arguments"]('[command]').description('Get help on a HackMyResume command').action(function(cmd) {
|
||||||
var cmd, manPage;
|
var manPage;
|
||||||
cmd = command && command.trim();
|
cmd = cmd || 'use';
|
||||||
if (cmd) {
|
|
||||||
manPage = FS.readFileSync(PATH.join(__dirname, 'help/' + cmd + '.txt'), 'utf8');
|
manPage = FS.readFileSync(PATH.join(__dirname, 'help/' + cmd + '.txt'), 'utf8');
|
||||||
} else {
|
_out.log(M2C(manPage, 'white', 'yellow.bold'));
|
||||||
manPage = FS.readFileSync(PATH.join(__dirname, 'use.txt'), 'utf8');
|
|
||||||
}
|
|
||||||
console.log(M2C(manPage, 'white', 'yellow.bold'));
|
|
||||||
});
|
});
|
||||||
program.parse(args);
|
program.parse(args);
|
||||||
if (!program.args.length) {
|
if (!program.args.length) {
|
||||||
@ -161,7 +157,7 @@ Definition of the `main` function.
|
|||||||
};
|
};
|
||||||
Command.prototype.helpInformation = function() {
|
Command.prototype.helpInformation = function() {
|
||||||
var manPage;
|
var manPage;
|
||||||
manPage = FS.readFileSync(PATH.join(__dirname, 'use.txt'), 'utf8');
|
manPage = FS.readFileSync(PATH.join(__dirname, 'help/use.txt'), 'utf8');
|
||||||
return M2C(manPage, 'white', 'yellow');
|
return M2C(manPage, 'white', 'yellow');
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
@ -137,15 +137,12 @@ main = module.exports = ( rawArgs, exitCallback ) ->
|
|||||||
.command('help')
|
.command('help')
|
||||||
.arguments('[command]')
|
.arguments('[command]')
|
||||||
.description('Get help on a HackMyResume command')
|
.description('Get help on a HackMyResume command')
|
||||||
.action ( command ) ->
|
.action ( cmd ) ->
|
||||||
cmd = command && command.trim()
|
cmd = cmd || 'use'
|
||||||
if cmd
|
|
||||||
manPage = FS.readFileSync(
|
manPage = FS.readFileSync(
|
||||||
PATH.join(__dirname, 'help/' + cmd + '.txt'), 'utf8' )
|
PATH.join(__dirname, 'help/' + cmd + '.txt'),
|
||||||
else
|
'utf8')
|
||||||
manPage = FS.readFileSync(
|
_out.log M2C(manPage, 'white', 'yellow.bold')
|
||||||
PATH.join(__dirname, 'use.txt'), 'utf8' )
|
|
||||||
console.log M2C(manPage, 'white', 'yellow.bold')
|
|
||||||
return
|
return
|
||||||
|
|
||||||
program.parse( args )
|
program.parse( args )
|
||||||
@ -204,7 +201,7 @@ initialize = ( ar, exitCallback ) ->
|
|||||||
# Override the .helpInformation behavior
|
# Override the .helpInformation behavior
|
||||||
Command.prototype.helpInformation = ->
|
Command.prototype.helpInformation = ->
|
||||||
manPage = FS.readFileSync(
|
manPage = FS.readFileSync(
|
||||||
PATH.join(__dirname, 'use.txt'), 'utf8' )
|
PATH.join(__dirname, 'help/use.txt'), 'utf8' )
|
||||||
return M2C(manPage, 'white', 'yellow')
|
return M2C(manPage, 'white', 'yellow')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user