This repository has been archived by the owner on Feb 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo.fish.template
91 lines (67 loc) · 3.27 KB
/
cargo.fish.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Tab completion for cargo (https://github.com/rust-lang/cargo).
complete -e -c cargo
{{c}} -s h -l help
{{c}} -s V -l version -d 'Print version info and exit'
{{c}} -l list -d 'List installed commands'
{{c}} -s v -l verbose -d 'Use verbose output'
{{c}} -s q -l quiet -d 'No output printed to stdout'
set __fish_cargo_subcommands (cargo --list | tail -n +2 | tr -d " ")
{{c}} -f -c cargo -n '__fish_use_subcommand' -a '$__fish_cargo_subcommands'
{{c}} -x -c cargo -n '{{s}} help' -a '$__fish_cargo_subcommands'
for x in bench build clean doc fetch generate-lockfile \
locate-project package pkgid publish \
read-manifest run rustc test update \
verify-project;
{{c}} -r -n "{{s}} $x" -l manifest-path -d 'path to the manifest to compile'
end
for x in bench build clean doc rustc test update;
{{c}} -x -n "{{s}} $x" -s p -l spec -d 'Package to build'
end
for x in bench build clean doc run rustc test;
{{c}} -x -n "{{s}} $x" -l target -d 'Build for the target triple'
end
for x in bench build rustc test;
{{c}} -x -n "{{s}} $x" -l bench -d 'Only the specified benchmark'
{{c}} -n "{{s}} $x" -l lib -d 'Only this package\'s library'
{{c}} -x -n "{{s}} $x" -l test -d 'Only the specified test'
end
for x in bench build run rustc test;
{{c}} -x -n "{{s}} $x" -l bin -d 'Only the specified binary'
{{c}} -x -n "{{s}} $x" -l example -d 'Only the specified example'
end
for x in build run rustc test;
{{c}} -n "{{s}} $x" -l release -d 'Build artifacts in release mode, with optimizations'
end
for x in bench test;
{{c}} -n "{{s}} $x" -l no-run -d 'Compile but do not run'
end
for x in bench build doc run rustc test;
{{c}} -x -n "{{s}} $x" -s j -l jobs -d 'Number of jobs to run in parallel'
{{c}} -x -n "{{s}} $x" -l features -d 'Space-separated list of features to also build'
{{c}} -n "{{s}} $x" -l no-default-features -d 'Do not build the `default` feature'
end
{{c}} -n '{{s}} doc' -l no-deps -d 'Don\'t build documentation for dependencies'
{{c}} -x -n '{{s}} new' -l vcs -a 'none hg git' -d 'Specify a vcs to use'
{{c}} -x -n '{{s}} new' -l name
# This bin does not take any arguments which is why it is not defined above.
{{c}} -n '{{s}} new' -l bin
{{c}} -x -n '{{s}} git-checkout' -l url
{{c}} -x -n '{{s}} git-checkout' -l reference
for x in login publish search;
{{c}} -x -n "{{s}} $x" -l host -d 'The host to submit the request to'
end
{{c}} -n '{{s}} doc' -l open -d 'Opens the docs in a browser after the operation'
{{c}} -r -n '{{s}} owner' -s a -l add -d 'Login of a user to add as an owner'
{{c}} -r -n '{{s}} owner' -s r -l remove -d 'Login of a user to remove as an owner'
for x in owner yank;
{{c}} -r -n "{{s}} $x" -l index -d 'Registry index to use'
end
for x in owner publish yank;
{{c}} -x -n "{{s}} $x" -l token -d 'API token to use when authenticating'
end
{{c}} -n '{{s}} package' -l no-verify -d 'Don\'t verify the contents by building them'
{{c}} -n '{{s}} package' -l no-metadata -d 'Ignore warnings about a lack of human-usable metadata'
{{c}} -n '{{s}} update' -l aggressive -d 'Force updating all dependencies of <name> as well'
{{c}} -x -n '{{s}} update' -l precise -d 'Update a single dependency to exactly PRECISE'
{{c}} -x -n '{{s}} yank' -l vers -d 'The version to yank or un-yank'
{{c}} -n '{{s}} yank' -l undo -d 'Undo a yank, putting a version back into the index'