Skip to content

Commit e5149c9

Browse files
committed
Update startup message to include help functions
1 parent bf73e35 commit e5149c9

File tree

2 files changed

+40
-2
lines changed
  • lib/node_modules/@stdlib/repl

2 files changed

+40
-2
lines changed

lib/node_modules/@stdlib/repl/bin/cli

+20-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ var CLI = require( '@stdlib/tools/cli' );
2828
var repl = require( './../lib' );
2929

3030

31+
// VARIABLES //
32+
33+
var MSG = [
34+
'',
35+
'A better REPL for Node.js.',
36+
'',
37+
' help( alias ) Prints help text.',
38+
' examples( alias ) Runs examples.',
39+
' alias2pkg( alias ) Converts an alias to a stdlib package name.',
40+
' pkg2alias( pkg ) Converts a stdlib package name to an alias.',
41+
' namespace() Lists namespace contents.',
42+
'',
43+
'For more info about stdlib, see the source repository:',
44+
'',
45+
' https://github.com/stdlib-js/stdlib',
46+
''
47+
].join( '\n' );
48+
49+
3150
// MAIN //
3251

3352
/**
@@ -44,7 +63,7 @@ function main() {
4463
'encoding': 'utf8'
4564
})
4665
});
47-
console.log( 'Starting REPL...' ); // eslint-disable-line no-console
66+
console.log( MSG ); // eslint-disable-line no-console
4867
repl( onStart );
4968

5069
/**

lib/node_modules/@stdlib/repl/server/bin/cli

+20-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ var CLI = require( '@stdlib/tools/cli' );
2828
var repl = require( './../lib' );
2929

3030

31+
// VARIABLES //
32+
33+
var MSG = [
34+
'',
35+
'A better REPL for Node.js.',
36+
'',
37+
' help( alias ) Prints help text.',
38+
' examples( alias ) Runs examples.',
39+
' alias2pkg( alias ) Converts an alias to a stdlib package name.',
40+
' pkg2alias( pkg ) Converts a stdlib package name to an alias.',
41+
' namespace() Lists namespace contents.',
42+
'',
43+
'For more info about stdlib, see the source repository:',
44+
'',
45+
' https://github.com/stdlib-js/stdlib',
46+
''
47+
].join( '\n' );
48+
49+
3150
// MAIN //
3251

3352
/**
@@ -44,7 +63,7 @@ function main() {
4463
'encoding': 'utf8'
4564
})
4665
});
47-
console.log( 'Starting REPL...' ); // eslint-disable-line no-console
66+
console.log( MSG ); // eslint-disable-line no-console
4867
repl( onStart );
4968

5069
/**

0 commit comments

Comments
 (0)