From dcbe2cd6495489d28945a06fb2cb7edf668bc540 Mon Sep 17 00:00:00 2001 From: Azat S Date: Fri, 20 Jan 2017 12:17:01 +0300 Subject: [PATCH] Add Yarn upgrade-ineractive CLI command --- plugins/yarn/yarn.plugin.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh index 47c503ac..13fcc205 100644 --- a/plugins/yarn/yarn.plugin.zsh +++ b/plugins/yarn/yarn.plugin.zsh @@ -21,6 +21,11 @@ _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.' \ @@ -38,6 +43,7 @@ _yarn () '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: - Show information about why a package is installed.' ) _arguments \ @@ -71,6 +77,10 @@ _yarn () _arguments \ $_dopts ;; + upgrade-interactive) + _arguments \ + $_upgrade + ;; *) _arguments \ ;;