1.1.2 • Published 2 years ago

custom-cli-commands v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Custom CLI Commands

Installation:

npm i -g custom-cli-commands

Create custom CLI commands by globally aliasing shell scripts collected in a single location.

cli -d edit # Open the scripts directory.
cli -d code # You can also open it in vscode.

# Write your script in a shell file in this directory.

cli -d new my-alias my-script-file.sh # Link an alias to the shell file.

cli my-alias # Use your alias to run the script from any location.

Note: if your script accesses other files in the scripts directory, you'll need to ensure that it references these files using the correct base directory.

BASEDIR=$(dirname $0)
node $BASEDIR/other-file.js
1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago