summaryrefslogtreecommitdiff
path: root/plugins/yarn/yarn.plugin.zsh
diff options
context:
space:
mode:
authorAzat S <to@azat.io>2018-07-10 14:41:20 +0300
committerMarc Cornellà <marc.cornella@live.com>2018-07-10 13:41:20 +0200
commitbe342b1bc8306cc24c2bb6145ceae78839a3008f (patch)
treed50dad8e507a55184092bc210ad5938fe605801f /plugins/yarn/yarn.plugin.zsh
parentd232e6866c08a7b192d31c435ad2e00ccc48e03a (diff)
downloadzsh-be342b1bc8306cc24c2bb6145ceae78839a3008f.tar.gz
zsh-be342b1bc8306cc24c2bb6145ceae78839a3008f.tar.bz2
zsh-be342b1bc8306cc24c2bb6145ceae78839a3008f.zip
Yarn upgrade-interactive (#5796)
* Add Yarn upgrade-ineractive CLI command * Remove dots at the end of completions
Diffstat (limited to 'plugins/yarn/yarn.plugin.zsh')
-rw-r--r--plugins/yarn/yarn.plugin.zsh42
1 files changed, 26 insertions, 16 deletions
diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
index 939820edb..eee811b16 100644
--- a/plugins/yarn/yarn.plugin.zsh
+++ b/plugins/yarn/yarn.plugin.zsh
@@ -28,24 +28,30 @@ _yarn ()
_production=('(--production)--production[Do not install project devDependencies]')
+ _upgrade=(
+ '(--exact)--exact[Install exact version]'
+ '(--tilde)--tilde[Install most recent release with the same minor version]'
+ )
+
_1st_arguments=(
'help:Display help information about yarn' \
- 'init:Initialize for the development of a package.' \
- 'add:Add a package to use in your current package.' \
- 'install:Install all the dependencies listed within package.json in the local node_modules folder.' \
- 'publish:Publish a package to a package manager.' \
- 'remove:Remove a package that will no longer be used in your current package.' \
- 'cache:Clear the local cache. It will be populated again the next time yarn or yarn install is run.' \
- 'clean:Frees up space by removing unnecessary files and folders from dependencies.' \
- 'check:Verifies that versions of the package dependencies in the current project’s package.json matches that of yarn’s lock file.' \
- 'ls:List all installed packages.' \
- 'global:Makes binaries available to use on your operating system.' \
- 'info:<package> [<field>] - fetch information about a package and return it in a tree format.' \
- 'outdated:Checks for outdated package dependencies.' \
- 'run:Runs a defined package script.' \
- 'self-update:Updates Yarn to the latest version.' \
- 'upgrade:Upgrades packages to their latest version based on the specified range.' \
- 'why:<query> - Show information about why a package is installed.'
+ 'init:Initialize for the development of a package' \
+ 'add:Add a package to use in your current package' \
+ 'install:Install all the dependencies listed within package.json in the local node_modules folder' \
+ 'publish:Publish a package to a package manager' \
+ 'remove:Remove a package that will no longer be used in your current package' \
+ 'cache:Clear the local cache. It will be populated again the next time yarn or yarn install is run' \
+ 'clean:Frees up space by removing unnecessary files and folders from dependencies' \
+ 'check:Verifies that versions of the package dependencies in the current project’s package.json matches that of yarn’s lock file' \
+ 'ls:List all installed packages' \
+ 'global:Makes binaries available to use on your operating system' \
+ 'info:<package> [<field>] - fetch information about a package and return it in a tree format' \
+ 'outdated:Checks for outdated package dependencies' \
+ 'run:Runs a defined package script' \
+ 'self-update:Updates Yarn to the latest version' \
+ 'upgrade:Upgrades packages to their latest version based on the specified range' \
+ 'upgrade-interactive:Selectively upgrades specific packages in a simple way' \
+ 'why:<query> - Show information about why a package is installed'
)
_arguments \
'*:: :->subcmds' && return 0
@@ -78,6 +84,10 @@ _yarn ()
_arguments \
$_dopts
;;
+ upgrade-interactive)
+ _arguments \
+ $_upgrade
+ ;;
*)
_arguments \
;;