Skip to content

Commit 965a3ac

Browse files
committed
prevent already matched arguments from being matched repeatedly
1 parent 9f4ab99 commit 965a3ac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

shell/exercism.fish

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
# Configure
2-
complete -f -c exercism -a "configure" -d "Writes config values to a JSON file."
2+
complete -f -c exercism -n "__fish_use_subcommand" -a "configure" -d "Writes config values to a JSON file."
33
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s t -l token -d "Set token"
44
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s w -l workspace -d "Set workspace"
55
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s a -l api -d "set API base url"
66
complete -f -c exercism -n "__fish_seen_subcommand_from configure" -s s -l show -d "show settings"
77

88
# Download
9-
complete -f -c exercism -a "download" -d "Downloads and saves a specified submission into the local system"
9+
complete -f -c exercism -n "__fish_use_subcommand" -a "download" -d "Downloads and saves a specified submission into the local system"
1010
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s e -l exercise -d "the exercise slug"
1111
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s h -l help -d "help for download"
1212
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s T -l team -d "the team slug"
1313
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s t -l track -d "the track ID"
1414
complete -f -c exercism -n "__fish_seen_subcommand_from download" -s u -l uuid -d "the solution UUID"
1515

1616
# Help
17-
complete -f -c exercism -a "help" -d "Shows a list of commands or help for one command"
17+
complete -f -c exercism -n "__fish_use_subcommand" -a "help" -d "Shows a list of commands or help for one command"
1818
complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit troubleshoot upgrade version workspace"
1919

2020
# Open
21-
complete -f -c exercism -a "open" -d "Opens a browser to exercism.io for the specified submission."
21+
complete -f -c exercism -n "__fish_use_subcommand" -a "open" -d "Opens a browser to exercism.io for the specified submission."
2222
complete -f -c exercism -n "__fish_seen_subcommand_from open" -s h -l help -d "help for open"
2323

2424
# Submit
25-
complete -f -c exercism -a "submit" -d "Submits a new iteration to a problem on exercism.io."
25+
complete -f -c exercism -n "__fish_use_subcommand" -a "submit" -d "Submits a new iteration to a problem on exercism.io."
2626
complete -f -c exercism -n "__fish_seen_subcommand_from submit" -s h -l help -d "help for submit"
2727

2828
# Troubleshoot
29-
complete -f -c exercism -a "troubleshoot" -d "Outputs useful debug information."
29+
complete -f -c exercism -n "__fish_use_subcommand" -a "troubleshoot" -d "Outputs useful debug information."
3030
complete -f -c exercism -n "__fish_seen_subcommand_from troubleshoot" -s f -l full-api-key -d "display full API key (censored by default)"
3131
complete -f -c exercism -n "__fish_seen_subcommand_from troubleshoot" -s h -l help -d "help for troubleshoot"
3232

3333
# Upgrade
34-
complete -f -c exercism -a "upgrade" -d "Upgrades to the latest available version."
34+
complete -f -c exercism -n "__fish_use_subcommand" -a "upgrade" -d "Upgrades to the latest available version."
3535
complete -f -c exercism -n "__fish_seen_subcommand_from help" -s h -l help -d "help for help"
3636

3737
# Version
38-
complete -f -c exercism -a "version" -d "Outputs version information."
38+
complete -f -c exercism -n "__fish_use_subcommand" -a "version" -d "Outputs version information."
3939
complete -f -c exercism -n "__fish_seen_subcommand_from version" -s l -l latest -d "check latest available version"
4040
complete -f -c exercism -n "__fish_seen_subcommand_from version" -s h -l help -d "help for version"
4141

4242
# Workspace
43-
complete -f -c exercism -a "workspace" -d "Outputs the root directory for Exercism exercises."
43+
complete -f -c exercism -n "__fish_use_subcommand" -a "workspace" -d "Outputs the root directory for Exercism exercises."
4444
complete -f -c exercism -n "__fish_seen_subcommand_from workspace" -s h -l help -d "help for workspace"
4545

4646
# Options

0 commit comments

Comments
 (0)