Skip to content

Commit c58323f

Browse files
committed
Add CLI support for retrieving datasets
1 parent 9265eda commit c58323f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

bin/cli

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ if ( cmd === 'help' ) {
111111
args2[ 1 ] = '--help';
112112
} else {
113113
if (
114-
cmd === 'repl' ||
114+
cmd === 'datasets' ||
115115
cmd === 'ls' ||
116-
cmd === 'ls-tree'
116+
cmd === 'ls-tree' ||
117+
cmd === 'repl'
117118
) {
118119
cmd = commands[ cmd ];
119120
cmd = path.resolve( __dirname, '..', cmd );

bin/commands.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"datasets": "./lib/node_modules/@stdlib/datasets/bin/cli",
23
"ls": "./tools/pkgs/names/bin/cli",
34
"ls-tree": "./tools/pkgs/tree/bin/cli",
45
"repl": "./lib/node_modules/@stdlib/repl/bin/cli"

bin/usage.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Options:
88
Commands:
99

1010
help [command] Print a help message.
11+
datasets Retrieve a dataset.
1112
ls List package names.
1213
tree Show package tree.
1314
repl Start a REPL.

0 commit comments

Comments
 (0)