Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWassim Chegham <1699357+manekinekko@users.noreply.github.com>2022-02-17 01:00:50 +0300
committerGitHub <noreply@github.com>2022-02-17 01:00:50 +0300
commit9275856eb75e7c394a3c7617c2b495aba35ee2de (patch)
treeb68f4bff83ea27460496216b5c14fb79f86f01d1 /tap-snapshots/test
parentfb13bdaf12dde3ef5685a77354e51a9cfa579879 (diff)
docs: update usage example for npm pkg (#4424)
Add example for setting array values Fixes #4320
Diffstat (limited to 'tap-snapshots/test')
-rw-r--r--tap-snapshots/test/lib/load-all-commands.js.test.cjs2
-rw-r--r--tap-snapshots/test/lib/utils/npm-usage.js.test.cjs2
2 files changed, 4 insertions, 0 deletions
diff --git a/tap-snapshots/test/lib/load-all-commands.js.test.cjs b/tap-snapshots/test/lib/load-all-commands.js.test.cjs
index c9da1e236..d84cdfb30 100644
--- a/tap-snapshots/test/lib/load-all-commands.js.test.cjs
+++ b/tap-snapshots/test/lib/load-all-commands.js.test.cjs
@@ -690,6 +690,8 @@ Usage:
npm pkg set <key>=<value> [<key>=<value> ...]
npm pkg get [<key> [<key> ...]]
npm pkg delete <key> [<key> ...]
+npm pkg set [<array>[<index>].<key>=<value> ...]
+npm pkg set [<array>[].<key>=<value> ...]
Options:
[-f|--force] [--json]
diff --git a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
index f91f2b11d..42c24fabd 100644
--- a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
+++ b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
@@ -773,6 +773,8 @@ All commands:
npm pkg set <key>=<value> [<key>=<value> ...]
npm pkg get [<key> [<key> ...]]
npm pkg delete <key> [<key> ...]
+ npm pkg set [<array>[<index>].<key>=<value> ...]
+ npm pkg set [<array>[].<key>=<value> ...]
Options:
[-f|--force] [--json]