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
5423f7fa
Commit
5423f7fa
authored
Jan 24, 2017
by
Frederick Zhang
Browse files
complete installed sub-commands
parent
b9533cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/cargo/_cargo
View file @
5423f7fa
...
...
@@ -390,6 +390,7 @@ esac
}
_cargo_cmds(){
local IFS=$'\n'
local -a commands;commands=(
'bench:execute all benchmarks of a local package'
'build:compile the current project'
...
...
@@ -420,6 +421,7 @@ local -a commands;commands=(
'verify-project:check Cargo.toml'
'version:show version information'
'yank:remove pushed file from index'
$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 | head -n 1\)\"/" | sh )
)
_describe 'command' commands
...
...
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