Skip to content

Commit 608944a

Browse files
committed
Update CLIs
1 parent 567c5f3 commit 608944a

51 files changed

Lines changed: 73 additions & 55 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/node_modules/@stdlib/_tools/pkgs/addons/README.md

Lines changed: 1 addition & 1 deletion

lib/node_modules/@stdlib/_tools/pkgs/addons/bin/cli

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ function main() {
4646
// Create a command-line interface:
4747
cli = new CLI({
4848
'pkg': require( './../package.json' ),
49-
'options': require( './opts.json' ),
50-
'help': readFileSync( join( __dirname, 'usage.txt' ), {
49+
'options': require( './../etc/cli_opts.json' ),
50+
'help': readFileSync( join( __dirname, '..', 'docs', 'usage.txt' ), {
5151
'encoding': 'utf8'
5252
})
5353
});
54+
5455
// Get any provided command-line arguments:
5556
args = cli.args();
5657

lib/node_modules/@stdlib/_tools/pkgs/clis/bin/usage.txt renamed to lib/node_modules/@stdlib/_tools/pkgs/addons/docs/usage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Usage: find-pkg-clis [options] [dir]
2+
Usage: find-pkg-addons [options] [<dir>]
33

44
Options:
55

lib/node_modules/@stdlib/_tools/pkgs/addons/bin/opts.json renamed to lib/node_modules/@stdlib/_tools/pkgs/addons/etc/cli_opts.json

File renamed without changes.

lib/node_modules/@stdlib/_tools/pkgs/addons/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"main": "./lib",
2020
"directories": {
2121
"bin": "./bin",
22+
"doc": "./docs",
2223
"example": "./examples",
2324
"lib": "./lib",
2425
"test": "./test"

lib/node_modules/@stdlib/_tools/pkgs/addons/test/test.cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tape( 'when invoked with a `--help` flag, the command-line interface prints the
3535
var expected;
3636
var cmd;
3737

38-
expected = readFileSync( resolve( __dirname, '..', 'bin', 'usage.txt' ), {
38+
expected = readFileSync( resolve( __dirname, '..', 'docs', 'usage.txt' ), {
3939
'encoding': 'utf8'
4040
});
4141
cmd = [
@@ -61,7 +61,7 @@ tape( 'when invoked with a `-h` flag, the command-line interface prints the help
6161
var expected;
6262
var cmd;
6363

64-
expected = readFileSync( resolve( __dirname, '..', 'bin', 'usage.txt' ), {
64+
expected = readFileSync( resolve( __dirname, '..', 'docs', 'usage.txt' ), {
6565
'encoding': 'utf8'
6666
});
6767
cmd = [

lib/node_modules/@stdlib/_tools/pkgs/clis/README.md

Lines changed: 1 addition & 1 deletion

lib/node_modules/@stdlib/_tools/pkgs/clis/bin/cli

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ function main() {
4646
// Create a command-line interface:
4747
cli = new CLI({
4848
'pkg': require( './../package.json' ),
49-
'options': require( './opts.json' ),
50-
'help': readFileSync( join( __dirname, 'usage.txt' ), {
49+
'options': require( './../etc/cli_opts.json' ),
50+
'help': readFileSync( join( __dirname, '..', 'docs', 'usage.txt' ), {
5151
'encoding': 'utf8'
5252
})
5353
});
54+
5455
// Get any provided command-line arguments:
5556
args = cli.args();
5657

lib/node_modules/@stdlib/_tools/pkgs/addons/bin/usage.txt renamed to lib/node_modules/@stdlib/_tools/pkgs/clis/docs/usage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Usage: find-pkg-addons [options] [dir]
2+
Usage: find-pkg-clis [options] [<dir>]
33

44
Options:
55

lib/node_modules/@stdlib/_tools/pkgs/clis/bin/opts.json renamed to lib/node_modules/@stdlib/_tools/pkgs/clis/etc/cli_opts.json

File renamed without changes.

0 commit comments

Comments
 (0)