Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add some conventional command aliases #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ npm install -g nrm

## Example
```
$ nrm ls
$ nrm ls //or nrm list

* npm ---------- https://registry.npmjs.org/
yarn --------- https://registry.yarnpkg.com/
Expand All @@ -46,7 +46,7 @@ Usage: nrm [options] [command]

Commands:

ls List all the registries
ls|list List all the registries.
current Show current registry name
use <registry> Change registry to registry
add <registry> <url> [home] Add one custom registry
Expand All @@ -57,11 +57,11 @@ Usage: nrm [options] [command]
-e --email <email> Your email for this registry
set-hosted-repo <registry> <value> Set hosted npm repository for a custom registry to publish packages
set-scope <scopeName> <value> Associating a scope with a registry
del-scope <scopeName> Remove a scope
del-scope|delete-scope <scopeName> Remove a scope
set <registryName> Set custom registry attribute
-a --attr <attr> Set custorm registry attribute
-v --value <value> Set custorm registry value
del <registry> Delete one custom registry
del|delete <registry> Delete one custom registry
rename <registryName> <newName> Set custom registry name
home <registry> [browser] Open the homepage of registry with optional browser
publish [<tarball>|<folder>] Publish package to current registry if current registry is a custom registry. The field 'repository' of current custom registry is required running this command. If you're not using custom registry, this command will run npm publish directly
Expand Down
3 changes: 3 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ program

program
.command('ls')
.alias('list')
.description('List all the registries')
.action(actions.onList);

Expand Down Expand Up @@ -49,6 +50,7 @@ program

program
.command('del-scope <scopeName>')
.alias('delete-scope')
.description('Remove a scope')
.action(actions.onDeleteScope);

Expand All @@ -66,6 +68,7 @@ program

program
.command('del <name>')
.alias('delete')
.description('Delete custom registry')
.action(actions.onDelete);

Expand Down