diff --git a/shell/exercism.fish b/shell/exercism.fish index dc20fdce0..28702a48f 100644 --- a/shell/exercism.fish +++ b/shell/exercism.fish @@ -15,7 +15,7 @@ complete -f -c exercism -n "__fish_seen_subcommand_from download" -s u -l uuid - # Help complete -f -c exercism -n "__fish_use_subcommand" -a "help" -d "Shows a list of commands or help for one command" -complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit troubleshoot upgrade version workspace" +complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit test troubleshoot upgrade version workspace" # Open 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 complete -f -c exercism -n "__fish_use_subcommand" -a "submit" -d "Submits a new iteration to a problem on exercism.io." complete -f -c exercism -n "__fish_seen_subcommand_from submit" -s h -l help -d "help for submit" +# Test +complete -f -c exercism -n "__fish_use_subcommand" -a "test" -d "Run the exercise's tests." +complete -f -c exercism -n "__fish_seen_subcommand_from submit" -s h -l help -d "help for test" + # Troubleshoot complete -f -c exercism -n "__fish_use_subcommand" -a "troubleshoot" -d "Outputs useful debug information." complete -f -c exercism -n "__fish_seen_subcommand_from troubleshoot" -s f -l full-api-key -d "display full API key (censored by default)" diff --git a/shell/exercism_completion.bash b/shell/exercism_completion.bash index f5f4e9010..6864ec153 100644 --- a/shell/exercism_completion.bash +++ b/shell/exercism_completion.bash @@ -7,7 +7,7 @@ _exercism () { opts="--verbose --timeout" commands="configure download open - submit troubleshoot upgrade version workspace help" + submit test troubleshoot upgrade version workspace help" config_opts="--show" version_opts="--latest" diff --git a/shell/exercism_completion.zsh b/shell/exercism_completion.zsh index 424b24e67..5d476ac66 100644 --- a/shell/exercism_completion.zsh +++ b/shell/exercism_completion.zsh @@ -8,6 +8,7 @@ options=(configure:"Writes config values to a JSON file." download:"Downloads and saves a specified submission into the local system" open:"Opens a browser to exercism.io for the specified submission." submit:"Submits a new iteration to a problem on exercism.io." + test:"Run the exercise's tests." troubleshoot:"Outputs useful debug information." upgrade:"Upgrades to the latest available version." version:"Outputs version information."