Skip to content

Commit 735f648

Browse files
committed
Auto merge of #7789 - gentoo90:bashcomp, r=alexcrichton
Update bash completion Get rid of the removed options and add the new ones.
2 parents dd112dc + db040bf commit 735f648

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

src/etc/cargo.bashcomp.sh

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,42 @@ _cargo()
4343
local opt_mani='--manifest-path'
4444
local opt_jobs='-j --jobs'
4545
local opt_force='-f --force'
46-
local opt_test='--test --bench'
47-
local opt_lock='--frozen --locked'
46+
local opt_sync='-s --sync'
47+
local opt_lock='--frozen --locked --offline'
4848
local opt_targets="--lib --bin --bins --example --examples --test --tests --bench --benches --all-targets"
4949

5050
local opt___nocmd="$opt_common -V --version --list --explain"
51-
local opt__bench="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_test $opt_targets --message-format --target --no-run --no-fail-fast --target-dir"
52-
local opt__build="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_test $opt_targets --message-format --target --release --target-dir"
53-
local opt__check="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_test $opt_targets --message-format --target --release --profile --target-dir"
54-
local opt__clean="$opt_common $opt_pkg $opt_mani $opt_lock --target --release --doc --target-dir"
55-
local opt__doc="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs --message-format --bin --bins --lib --target --open --no-deps --release --document-private-items --target-dir"
56-
local opt__fetch="$opt_common $opt_mani $opt_lock"
57-
local opt__fix="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_jobs $opt_targets $opt_lock --release --target --message-format --prepare-for --broken-code --edition --edition-idioms --allow-no-vcs --allow-dirty --allow-staged --profile --target-dir"
58-
local opt__generate_lockfile="${opt__fetch}"
51+
local opt__bench="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --target --no-run --no-fail-fast --target-dir"
52+
local opt__build="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --target --release --profile --target-dir"
53+
local opt__check="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --target --release --profile --target-dir"
54+
local opt__clean="$opt_common $opt_pkg $opt_mani $opt_lock --target --release --doc --target-dir --profile"
55+
local opt__doc="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs --message-format --bin --bins --lib --target --open --no-deps --release --document-private-items --target-dir --profile"
56+
local opt__fetch="$opt_common $opt_mani $opt_lock --target"
57+
local opt__fix="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_jobs $opt_targets $opt_lock --release --target --message-format --broken-code --edition --edition-idioms --allow-no-vcs --allow-dirty --allow-staged --profile --target-dir"
58+
local opt__generate_lockfile="$opt_common $opt_mani $opt_lock"
5959
local opt__git_checkout="$opt_common $opt_lock --reference --url"
6060
local opt__help="$opt_help"
6161
local opt__init="$opt_common $opt_lock --bin --lib --name --vcs --edition --registry"
62-
local opt__install="$opt_common $opt_feat $opt_jobs $opt_lock $opt_force --bin --bins --branch --debug --example --examples --git --list --path --rev --root --tag --version --registry --target"
63-
local opt__locate_project="$opt_mani -h --help"
64-
local opt__login="$opt_common $opt_lock --host --registry"
65-
local opt__metadata="$opt_common $opt_feat $opt_mani $opt_lock --format-version=1 --no-deps"
62+
local opt__install="$opt_common $opt_feat $opt_jobs $opt_lock $opt_force --bin --bins --branch --debug --example --examples --git --list --path --rev --root --tag --version --registry --target --profile --no-track"
63+
local opt__locate_project="$opt_common $opt_mani $opt_lock"
64+
local opt__login="$opt_common $opt_lock --registry"
65+
local opt__metadata="$opt_common $opt_feat $opt_mani $opt_lock --format-version=1 --no-deps --filter-platform"
6666
local opt__new="$opt_common $opt_lock --vcs --bin --lib --name --edition --registry"
6767
local opt__owner="$opt_common $opt_lock -a --add -r --remove -l --list --index --token --registry"
6868
local opt__package="$opt_common $opt_mani $opt_feat $opt_lock $opt_jobs --allow-dirty -l --list --no-verify --no-metadata --target --target-dir"
69-
local opt__pkgid="${opt__fetch} $opt_pkg"
70-
local opt__publish="$opt_common $opt_mani $opt_feat $opt_lock $opt_jobs --allow-dirty --dry-run --host --token --no-verify --index --registry --target --target-dir"
71-
local opt__read_manifest="$opt_help $opt_quiet $opt_verbose $opt_mani $opt_color "
72-
local opt__run="$opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs --message-format --target --bin --example --release --target-dir"
73-
local opt__rustc="$opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs $opt_test $opt_targets --message-format --profile --target --release --target-dir"
74-
local opt__rustdoc="$opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs $opt_test $opt_targets --message-format --target --release --open --target-dir"
75-
local opt__search="$opt_common $opt_lock --host --limit --index --limit --registry"
76-
local opt__test="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_test $opt_targets --message-format --doc --target --no-run --release --no-fail-fast --target-dir"
77-
local opt__uninstall="$opt_common $opt_lock $opt_pkg_spec --bin --root"
78-
local opt__update="$opt_common $opt_pkg_spec $opt_mani $opt_lock --aggressive --precise --dry-run"
79-
local opt__verify_project="${opt__fetch}"
80-
local opt__version="$opt_help $opt_verbose $opt_color"
69+
local opt__pkgid="$opt_common $opt_mani $opt_lock $opt_pkg"
70+
local opt__publish="$opt_common $opt_mani $opt_feat $opt_lock $opt_jobs --allow-dirty --dry-run --token --no-verify --index --registry --target --target-dir"
71+
local opt__read_manifest="$opt_help $opt_quiet $opt_verbose $opt_mani $opt_color $opt_lock --no-deps"
72+
local opt__run="$opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs --message-format --target --bin --example --release --target-dir --profile"
73+
local opt__rustc="$opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets -L --crate-type --extern --message-format --profile --target --release --target-dir"
74+
local opt__rustdoc="$opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --target --release --open --target-dir --profile"
75+
local opt__search="$opt_common $opt_lock --limit --index --registry"
76+
local opt__test="$opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --doc --target --no-run --release --no-fail-fast --target-dir --profile"
77+
local opt__uninstall="$opt_common $opt_lock $opt_pkg --bin --root"
78+
local opt__update="$opt_common $opt_mani $opt_lock $opt_pkg --aggressive --precise --dry-run"
79+
local opt__vendor="$opt_common $opt_mani $opt_lock $opt_sync --no-delete --respect-source-config --versioned-dirs"
80+
local opt__verify_project="$opt_common $opt_mani $opt_lock"
81+
local opt__version="$opt_common $opt_lock"
8182
local opt__yank="$opt_common $opt_lock --vers --undo --index --token --registry"
8283
local opt__libtest="--help --include-ignored --ignored --test --bench --list --logfile --nocapture --test-threads --skip -q --quiet --exact --color --format"
8384

0 commit comments

Comments
 (0)