Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
be342b1b
Commit
be342b1b
authored
Jul 10, 2018
by
Azat S
Committed by
Marc Cornellà
Jul 10, 2018
Browse files
Yarn upgrade-interactive (#5796)
* Add Yarn upgrade-ineractive CLI command * Remove dots at the end of completions
parent
d232e686
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/yarn/yarn.plugin.zsh
View file @
be342b1b
...
@@ -28,24 +28,30 @@ _yarn ()
...
@@ -28,24 +28,30 @@ _yarn ()
_production
=(
'(--production)--production[Do not install project devDependencies]'
)
_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
=(
_1st_arguments
=(
'help:Display help information about yarn'
\
'help:Display help information about yarn'
\
'init:Initialize for the development of a package.'
\
'init:Initialize for the development of a package'
\
'add:Add a package to use in your current 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.'
\
'install:Install all the dependencies listed within package.json in the local node_modules folder'
\
'publish:Publish a package to a package manager.'
\
'publish:Publish a package to a package manager'
\
'remove:Remove a package that will no longer be used in your current package.'
\
'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.'
\
'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.'
\
'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.'
\
'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.'
\
'ls:List all installed packages'
\
'global:Makes binaries available to use on your operating system.'
\
'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.'
\
'info:<package> [<field>] - fetch information about a package and return it in a tree format'
\
'outdated:Checks for outdated package dependencies.'
\
'outdated:Checks for outdated package dependencies'
\
'run:Runs a defined package script.'
\
'run:Runs a defined package script'
\
'self-update:Updates Yarn to the latest version.'
\
'self-update:Updates Yarn to the latest version'
\
'upgrade:Upgrades packages to their latest version based on the specified range.'
\
'upgrade:Upgrades packages to their latest version based on the specified range'
\
'why:<query> - Show information about why a package is installed.'
'upgrade-interactive:Selectively upgrades specific packages in a simple way'
\
'why:<query> - Show information about why a package is installed'
)
)
_arguments
\
_arguments
\
'*:: :->subcmds'
&&
return
0
'*:: :->subcmds'
&&
return
0
...
@@ -78,6 +84,10 @@ _yarn ()
...
@@ -78,6 +84,10 @@ _yarn ()
_arguments
\
_arguments
\
$_dopts
$_dopts
;;
;;
upgrade-interactive
)
_arguments
\
$_upgrade
;;
*
)
*
)
_arguments
\
_arguments
\
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment