MCPcopy Index your code
hub / github.com/skygragon/leetcode-cli / runCommand

Function runCommand

lib/cli.js:76–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74var cli = {};
75
76function runCommand() {
77 var yargs = require('yargs');
78 h.width = yargs.terminalWidth();
79 yargs.commandDir('commands')
80 .completion()
81 .help('h')
82 .alias('h', 'help')
83 .version(false)
84 .epilog('Seek more help at https://skygragon.github.io/leetcode-cli/commands')
85 .wrap(Math.min(h.width, 120))
86 .argv;
87}
88
89cli.run = function() {
90 process.stdout.on('error', function(e) {

Callers 1

cli.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected