Add --offline to zsh common comp

This commit is contained in:
A4-Tacks 2025-06-04 00:58:11 +08:00
parent 098a148fab
commit 12d6725a6e
No known key found for this signature in database
GPG Key ID: 86AC1F526BA06668

View File

@ -12,6 +12,7 @@ _cargo() {
'(-q --quiet)*'{-v,--verbose}'[use verbose output]'
'(-q --quiet -v --verbose)'{-q,--quiet}'[no output printed to stdout]'
'-Z+[pass unstable (nightly-only) flags to cargo]: :_cargo_unstable_flags'
'--offline[run without accessing the network]'
'--frozen[require that Cargo.lock and cache are up-to-date]'
'--locked[require that Cargo.lock is up-to-date]'
'--color=[specify colorization option]:coloring:(auto always never)'
@ -75,7 +76,6 @@ _cargo() {
{-F+,--features=}'[specify features to activate]:feature' \
"--default-features[enable the default features]" \
"--no-default-features[don't enable the default features]" \
"--offline[run without accessing the network]" \
"--optional[mark the dependency as optional]" \
"--no-optional[mark the dependency as required]" \
"--dev[add as a dev dependency]" \