diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2021-05-07 20:55:25 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2021-05-07 20:55:25 -0600 |
commit | ffdc4bfe1204f911d71b136dbd95784176a44eb6 (patch) | |
tree | 95acddefbb5e34f6a961b3aeb701732a399242af /plugins/cargo/_cargo | |
parent | b21e3c4f28d0d55947285dcebf9f91b580384b09 (diff) | |
parent | d646884add277d134235a9b18ab755388d6e0d8d (diff) | |
download | zsh-ffdc4bfe1204f911d71b136dbd95784176a44eb6.tar.gz zsh-ffdc4bfe1204f911d71b136dbd95784176a44eb6.tar.bz2 zsh-ffdc4bfe1204f911d71b136dbd95784176a44eb6.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/cargo/_cargo')
-rw-r--r-- | plugins/cargo/_cargo | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo index ffc9fcdc8..ebff99310 100644 --- a/plugins/cargo/_cargo +++ b/plugins/cargo/_cargo @@ -77,7 +77,7 @@ _cargo() { '*:args:_default' ;; - build) + build|b) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--all-targets[equivalent to specifying --lib --bins --tests --benches --examples]' \ "${command_scope_spec[@]}" \ @@ -86,7 +86,7 @@ _cargo() { '--build-plan[output the build plan in JSON]' \ ;; - check) + check|c) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--all-targets[equivalent to specifying --lib --bins --tests --benches --examples]' \ "${command_scope_spec[@]}" \ @@ -224,7 +224,7 @@ _cargo() { _arguments -s -S $common $manifest ;; - run) + run|r) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--example=[name of the bin target]:name' \ '--bin=[name of the bin target]:name' \ @@ -259,7 +259,7 @@ _cargo() { '*: :_guard "^-*" "query"' ;; - test) + test|t) _arguments -s -S $common $parallel $features $msgfmt $triple $target $manifest \ '--test=[test name]: :_cargo_test_names' \ '--no-fail-fast[run all tests regardless of failure]' \ |