diff options
author | Gar <gar+gh@danger.computer> | 2022-03-17 17:39:43 +0300 |
---|---|---|
committer | nlf <nlf@github.com> | 2022-03-17 21:03:15 +0300 |
commit | a304052580c070a1f8c1c0cf8cbeec615c46af02 (patch) | |
tree | 974ac6d7cb58e720e4da2a3cbf0252eacdff472f /lib | |
parent | ed82b4c430ad41c6b58e65d2902c864f2bbc6e45 (diff) |
docs: add foreground-scripts and ignore-scripts to commands
I think this gets them all
Diffstat (limited to 'lib')
-rw-r--r-- | lib/commands/audit.js | 2 | ||||
-rw-r--r-- | lib/commands/ci.js | 1 | ||||
-rw-r--r-- | lib/commands/install.js | 5 | ||||
-rw-r--r-- | lib/commands/prune.js | 10 | ||||
-rw-r--r-- | lib/commands/rebuild.js | 1 | ||||
-rw-r--r-- | lib/commands/update.js | 6 |
6 files changed, 21 insertions, 4 deletions
diff --git a/lib/commands/audit.js b/lib/commands/audit.js index fad43fe90..08d011d83 100644 --- a/lib/commands/audit.js +++ b/lib/commands/audit.js @@ -14,6 +14,8 @@ class Audit extends ArboristWorkspaceCmd { 'json', 'package-lock-only', 'omit', + 'foreground-scripts', + 'ignore-scripts', ...super.params, ] diff --git a/lib/commands/ci.js b/lib/commands/ci.js index e054bee51..eb1e02bcd 100644 --- a/lib/commands/ci.js +++ b/lib/commands/ci.js @@ -24,6 +24,7 @@ class CI extends ArboristWorkspaceCmd { static name = 'ci' static params = [ 'audit', + 'foreground-scripts', 'ignore-scripts', 'script-shell', ] diff --git a/lib/commands/install.js b/lib/commands/install.js index 61526abb7..ebba02a1b 100644 --- a/lib/commands/install.js +++ b/lib/commands/install.js @@ -14,15 +14,18 @@ const ArboristWorkspaceCmd = require('../arborist-cmd.js') class Install extends ArboristWorkspaceCmd { static description = 'Install a package' static name = 'install' + + // These are in the order they will show up in when running "-h" static params = [ 'save', 'save-exact', 'global', 'global-style', 'legacy-bundling', + 'omit', 'strict-peer-deps', 'package-lock', - 'omit', + 'foreground-scripts', 'ignore-scripts', 'audit', 'bin-links', diff --git a/lib/commands/prune.js b/lib/commands/prune.js index 16c8b6d43..ee2c30553 100644 --- a/lib/commands/prune.js +++ b/lib/commands/prune.js @@ -6,7 +6,15 @@ const ArboristWorkspaceCmd = require('../arborist-cmd.js') class Prune extends ArboristWorkspaceCmd { static description = 'Remove extraneous packages' static name = 'prune' - static params = ['omit', 'dry-run', 'json', ...super.params] + static params = [ + 'omit', + 'dry-run', + 'json', + 'foreground-scripts', + 'ignore-scripts', + ...super.params, + ] + static usage = ['[[<@scope>/]<pkg>...]'] async exec () { diff --git a/lib/commands/rebuild.js b/lib/commands/rebuild.js index 471d60b74..0e8a1510b 100644 --- a/lib/commands/rebuild.js +++ b/lib/commands/rebuild.js @@ -11,6 +11,7 @@ class Rebuild extends ArboristWorkspaceCmd { static params = [ 'global', 'bin-links', + 'foreground-scripts', 'ignore-scripts', ...super.params, ] diff --git a/lib/commands/update.js b/lib/commands/update.js index 025ebbaf8..c2c3502ee 100644 --- a/lib/commands/update.js +++ b/lib/commands/update.js @@ -10,14 +10,16 @@ const ArboristWorkspaceCmd = require('../arborist-cmd.js') class Update extends ArboristWorkspaceCmd { static description = 'Update packages' static name = 'update' + static params = [ + 'save', 'global', 'global-style', 'legacy-bundling', + 'omit', 'strict-peer-deps', 'package-lock', - 'save', - 'omit', + 'foreground-scripts', 'ignore-scripts', 'audit', 'bin-links', |