Skip to content

Commit 20d58b1

Browse files
authored
Add test command to Shell completions (#1156)
`test` command was supported since v3.2.0, see a8ffc31 (Add `test` command to run any unit test (\#1092), 2023-07-28)
1 parent b43bd37 commit 20d58b1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

shell/exercism.fish

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ complete -f -c exercism -n "__fish_seen_subcommand_from download" -s u -l uuid -
1515

1616
# Help
1717
complete -f -c exercism -n "__fish_use_subcommand" -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"
18+
complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit test troubleshoot upgrade version workspace"
1919

2020
# Open
2121
complete -f -c exercism -n "__fish_use_subcommand" -a "open" -d "Opens a browser to exercism.io for the specified submission."
@@ -25,6 +25,10 @@ complete -f -c exercism -n "__fish_seen_subcommand_from open" -s h -l help -d "h
2525
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

28+
# Test
29+
complete -f -c exercism -n "__fish_use_subcommand" -a "test" -d "Run the exercise's tests."
30+
complete -f -c exercism -n "__fish_seen_subcommand_from submit" -s h -l help -d "help for test"
31+
2832
# Troubleshoot
2933
complete -f -c exercism -n "__fish_use_subcommand" -a "troubleshoot" -d "Outputs useful debug information."
3034
complete -f -c exercism -n "__fish_seen_subcommand_from troubleshoot" -s f -l full-api-key -d "display full API key (censored by default)"

shell/exercism_completion.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _exercism () {
77
opts="--verbose --timeout"
88

99
commands="configure download open
10-
submit troubleshoot upgrade version workspace help"
10+
submit test troubleshoot upgrade version workspace help"
1111
config_opts="--show"
1212
version_opts="--latest"
1313

shell/exercism_completion.zsh

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ options=(configure:"Writes config values to a JSON file."
88
download:"Downloads and saves a specified submission into the local system"
99
open:"Opens a browser to exercism.io for the specified submission."
1010
submit:"Submits a new iteration to a problem on exercism.io."
11+
test:"Run the exercise's tests."
1112
troubleshoot:"Outputs useful debug information."
1213
upgrade:"Upgrades to the latest available version."
1314
version:"Outputs version information."

0 commit comments

Comments
 (0)