From 401daae5d0e975939c460a7ea8ae0439cd660674 Mon Sep 17 00:00:00 2001 From: Qin Zhou <1079207272@qq.com> Date: Wed, 23 Feb 2022 18:51:38 +0800 Subject: [PATCH 1/2] feat: add some conventional command aliases --- cli.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli.js b/cli.js index afd5565..d2c36b7 100755 --- a/cli.js +++ b/cli.js @@ -9,6 +9,7 @@ program program .command('ls') + .alias('list') .description('List all the registries') .action(actions.onList); @@ -49,6 +50,7 @@ program program .command('del-scope ') + .alias('delete-scope') .description('Remove a scope') .action(actions.onDeleteScope); @@ -66,6 +68,7 @@ program program .command('del ') + .alias('delete') .description('Delete custom registry') .action(actions.onDelete); From e4a9ecde804d8174e4f207de8f92d58530794269 Mon Sep 17 00:00:00 2001 From: Qin Zhou <1079207272@qq.com> Date: Wed, 23 Feb 2022 19:07:31 +0800 Subject: [PATCH 2/2] docs: update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f88ad47..209183c 100644 --- a/README.md +++ b/README.md @@ -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/ @@ -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 Change registry to registry add [home] Add one custom registry @@ -57,11 +57,11 @@ Usage: nrm [options] [command] -e --email Your email for this registry set-hosted-repo Set hosted npm repository for a custom registry to publish packages set-scope Associating a scope with a registry - del-scope Remove a scope + del-scope|delete-scope Remove a scope set Set custom registry attribute -a --attr Set custorm registry attribute -v --value Set custorm registry value - del Delete one custom registry + del|delete Delete one custom registry rename Set custom registry name home [browser] Open the homepage of registry with optional browser publish [|] 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