File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,16 @@ if ( cmd === 'help' ) {
110110 args2 [ 0 ] = cmd ;
111111 args2 [ 1 ] = '--help' ;
112112} else {
113- if ( cmd === 'repl' ) {
113+ if (
114+ cmd === 'repl' ||
115+ cmd === 'ls'
116+ ) {
114117 cmd = commands [ cmd ] ;
115118 cmd = path . resolve ( __dirname , '..' , cmd ) ;
116119 args2 = new Array ( 1 ) ;
117120 args2 [ 0 ] = cmd ;
118- } else {
121+ }
122+ else {
119123 throw new Error ( 'invalid argument. Unrecognized/unsupported command. Value: `' + cmd + '`.' ) ;
120124 }
121125 for ( i = 1 ; i < args1 . _ . length ; i ++ ) {
Original file line number Diff line number Diff line change 11{
2+ "ls" : " ./tools/ls/module-names/bin/cli" ,
23 "repl" : " ./lib/node_modules/@stdlib/repl/bin/cli"
34}
Original file line number Diff line number Diff line change 88Commands:
99
1010 help [command] Print a help message.
11+ ls List module names.
1112 repl Start a REPL.
1213
You can’t perform that action at this time.
0 commit comments