Skip to content

Commit 9f4ab99

Browse files
committed
improve completions
1 parent 9816c92 commit 9f4ab99

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

shell/exercism.fish

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,49 @@
1+
# Configure
12
complete -f -c exercism -a "configure" -d "Writes config values to a JSON file."
3+
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s t -l token -d "Set token"
4+
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s w -l workspace -d "Set workspace"
5+
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s a -l api -d "set API base url"
6+
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s s -l show -d "show settings"
7+
8+
# Download
29
complete -f -c exercism -a "download" -d "Downloads and saves a specified submission into the local system"
10+
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s e -l exercise -d "the exercise slug"
11+
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s h -l help -d "help for download"
12+
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s T -l team -d "the team slug"
13+
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s t -l track -d "the track ID"
14+
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s u -l uuid -d "the solution UUID"
15+
16+
# Help
317
complete -f -c exercism -a "help" -d "Shows a list of commands or help for one command"
18+
complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit troubleshoot upgrade version workspace"
19+
20+
# Open
421
complete -f -c exercism -a "open" -d "Opens a browser to exercism.io for the specified submission."
22+
complete -f -c exercism -n "__fish_seen_subcommand_from open" -s h -l help -d "help for open"
23+
24+
# Submit
525
complete -f -c exercism -a "submit" -d "Submits a new iteration to a problem on exercism.io."
26+
complete -f -c exercism -n "__fish_seen_subcommand_from submit" -s h -l help -d "help for submit"
27+
28+
# Troubleshoot
629
complete -f -c exercism -a "troubleshoot" -d "Outputs useful debug information."
30+
complete -f -c exercism -n "__fish_seen_subcommand_from troubleshoot" -s f -l full-api-key -d "display full API key (censored by default)"
31+
complete -f -c exercism -n "__fish_seen_subcommand_from troubleshoot" -s h -l help -d "help for troubleshoot"
32+
33+
# Upgrade
734
complete -f -c exercism -a "upgrade" -d "Upgrades to the latest available version."
35+
complete -f -c exercism -n "__fish_seen_subcommand_from help" -s h -l help -d "help for help"
36+
37+
# Version
838
complete -f -c exercism -a "version" -d "Outputs version information."
39+
complete -f -c exercism -n "__fish_seen_subcommand_from version" -s l -l latest -d "check latest available version"
40+
complete -f -c exercism -n "__fish_seen_subcommand_from version" -s h -l help -d "help for version"
41+
42+
# Workspace
943
complete -f -c exercism -a "workspace" -d "Outputs the root directory for Exercism exercises."
44+
complete -f -c exercism -n "__fish_seen_subcommand_from workspace" -s h -l help -d "help for workspace"
45+
46+
# Options
1047
complete -f -c exercism -s h -l help -d "show help"
1148
complete -f -c exercism -l timeout -a "(seq 0 100 100000)" -d "override default HTTP timeout"
1249
complete -f -c exercism -s v -l verbose -d "turn on verbose logging"

0 commit comments

Comments
 (0)