Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: creinstall cmd --quiet & --force flags #520

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions _zinit
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ _zinit_create(){
} # ]]]
# FUNCTION: _zinit_creinstall [[[
_zinit_creinstall(){
_arguments - plugin '1::plugin:__zinit_installed_plugins' && ret=0
_arguments -A \
{-f,--force}'[Force new download of the snippet file]' \
{-h,--help}'[Show this help message]' \
{-q,--quiet}'[Turn off messages from the operation]' \
'1::plugin:__zinit_installed_plugins' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_csearch [[[
_zinit_csearch(){
Expand Down Expand Up @@ -223,14 +228,15 @@ _zinit_debug(){
_zinit_edit(){
_arguments \
- installed '*::plugin:__zinit_installed_plugins' \
- snippet '*::snippet:__zinit_installed_snippets' && ret=0
- snippet '*::snippet:__zinit_installed_snippets' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_env_whitelist [[[
_zinit_env_whitelist(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-v --verbose)'{-v,--verbose}'[Make some output more verbose]' \
&& ret=0
&& ret=0
} # ]]]
# FUNCTION: _zinit_glance [[[
_zinit_glance(){
Expand Down Expand Up @@ -269,7 +275,8 @@ _zinit_report(){
_zinit_run(){
_arguments \
- installed '1:installed:__zinit_installed' \
'2:command to run:' && ret=0
'2:command to run:' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_self_update [[[
_zinit_self_update(){
Expand Down Expand Up @@ -312,7 +319,8 @@ _zinit_unload(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Turn off messages from the operation]' \
- installed '*:installed:__zinit_installed'
- installed '*:installed:__zinit_installed' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_update [[[
_zinit_update(){
Expand All @@ -326,7 +334,8 @@ _zinit_update(){
'--parallel[Turn on concurrent, multi-thread update (of all objects)]' \
'(-a --all)'{-a,--all}'[Update all plugins and snippets]' \
- set2 \
'1:installed:__zinit_installed'
'1:installed:__zinit_installed' \
&& ret=0
} # ]]]
# FUNCTION: _zunit_load [[[
_zinit_load() {
Expand Down
43 changes: 14 additions & 29 deletions doc/zsdoc/zinit-install.zsh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,8 @@ Has 377 line(s). Calls functions:
|   |   |-- .zinit-forget-completion
|   |   |-- compinit
|   |   `-- zinit.zsh/+zinit-message
|   |-- .zinit-forget-completion
|   |-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|   |-- zinit-side.zsh/.zinit-exists-physically-message
|   |-- zinit.zsh/+zinit-message
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|   |-- zinit.zsh/+zi-log
|   `-- zinit.zsh/+zinit-message
|-- .zinit-mirror-using-svn
|-- zinit-side.zsh/.zinit-store-ices
|-- zinit.zsh/+zinit-message
Expand Down Expand Up @@ -254,7 +251,6 @@ Uses feature(s): _setopt_, _unfunction_
Called by:

.zinit-compinit
.zinit-install-completions
zinit-autoload.zsh/.zinit-uninstall-completions
zinit.zsh/zinit

Expand Down Expand Up @@ -338,37 +334,32 @@ Called by:

____

Installs all completions of given plugin. After that they are
visible to 'compinit'. Visible completions can be selectively
disabled and enabled. User can access completion data with
'clist' or 'completions' subcommand.
Installs plugin completions.

$1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
$2 - plugin if $1 (i.e., user) given
$3 - if 1, then reinstall, otherwise only install completions that are not present


____

Has 62 line(s). Calls functions:
Has 76 line(s). Calls functions:

.zinit-install-completions
|-- .zinit-compinit
|   |-- .zinit-forget-completion
|   |-- compinit
|   `-- zinit.zsh/+zinit-message
|-- .zinit-forget-completion
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|-- zinit-side.zsh/.zinit-exists-physically-message
|-- zinit.zsh/+zinit-message
`-- zinit.zsh/.zinit-any-to-user-plugin
|-- zinit.zsh/+zi-log
`-- zinit.zsh/+zinit-message

Uses feature(s): _setopt_
Uses feature(s): _setopt_, _zparseopts_

Called by:

.zinit-download-snippet
.zinit-setup-plugin-dir
zinit.zsh/zinit
zinit.zsh/+zi-cmp-reinstall

==== .zinit-jq-check

Expand Down Expand Up @@ -487,11 +478,8 @@ Has 214 line(s). Calls functions:
|   |   |-- .zinit-forget-completion
|   |   |-- compinit
|   |   `-- zinit.zsh/+zinit-message
|   |-- .zinit-forget-completion
|   |-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|   |-- zinit-side.zsh/.zinit-exists-physically-message
|   |-- zinit.zsh/+zinit-message
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|   |-- zinit.zsh/+zi-log
|   `-- zinit.zsh/+zinit-message
|-- ziextract
|   `-- zinit.zsh/+zinit-message
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
Expand Down Expand Up @@ -534,11 +522,8 @@ Has 76 line(s). Calls functions:
|   |   |   |-- .zinit-forget-completion
|   |   |   |-- compinit
|   |   |   `-- zinit.zsh/+zinit-message
|   |   |-- .zinit-forget-completion
|   |   |-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|   |   |-- zinit-side.zsh/.zinit-exists-physically-message
|   |   |-- zinit.zsh/+zinit-message
|   |   `-- zinit.zsh/.zinit-any-to-user-plugin
|   |   |-- zinit.zsh/+zi-log
|   |   `-- zinit.zsh/+zinit-message
|   |-- .zinit-mirror-using-svn
|   |-- zinit-side.zsh/.zinit-store-ices
|   |-- zinit.zsh/+zinit-message
Expand Down Expand Up @@ -850,7 +835,7 @@ ____

____

Has 549 line(s). Doesn't call other functions.
Has 573 line(s). Doesn't call other functions.

Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_

Expand Down
2 changes: 0 additions & 2 deletions doc/zsdoc/zinit-side.zsh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ Called by:
zinit-autoload.zsh/.zinit-update-all-parallel
zinit-autoload.zsh/.zinit-update-or-status-all
zinit-autoload.zsh/.zinit-update-or-status
zinit-install.zsh/.zinit-install-completions
zinit-install.zsh/.zinit-setup-plugin-dir
zinit.zsh/.zinit-formatter-pid

Expand Down Expand Up @@ -205,7 +204,6 @@ Called by:
zinit-autoload.zsh/.zinit-glance
zinit-autoload.zsh/.zinit-stress
zinit-autoload.zsh/.zinit-update-or-status
zinit-install.zsh/.zinit-install-completions

==== .zinit-first

Expand Down
Loading