2017-10-21 07:24:56 +00:00
|
|
|
function __fish_exercism_no_subcommand -d 'Test if exercism has yet to be given the subcommand'
|
2024-01-22 06:42:45 +00:00
|
|
|
for i in (commandline -xpc)
|
2019-05-05 10:53:09 +00:00
|
|
|
if contains -- $i demo debug configure fetch restore submit unsubmit tracks download help
|
|
|
|
return 1
|
2017-10-21 07:24:56 +00:00
|
|
|
end
|
2019-05-05 10:53:09 +00:00
|
|
|
end
|
|
|
|
return 0
|
2017-10-21 07:24:56 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
complete -c exercism -s c -l config -d 'path to config file [$EXERCISM_CONFIG_FILE, $XDG_CONFIG_HOME]'
|
|
|
|
complete -c exercism -s v -l verbose -d "turn on verbose logging"
|
|
|
|
complete -c exercism -s h -l help -d "show help"
|
|
|
|
complete -c exercism -s v -l version -d "print the version"
|
2024-05-16 16:49:52 +00:00
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a configure -d "Writes config values to a JSON file"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a debug -d "Outputs useful debug information"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a download -d "Downloads a solution given the ID of the latest iteration"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a fetch -d "Fetches the next unsubmitted problem in each track"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a list -d "Lists the available problems for a language track, given its ID"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a open -d "Opens exercism.io on given problem"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a restore -d "Downloads the most recent iteration for each of your solutions on exercism.io"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a skip -d "Skips a problem given a track ID and problem slug"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a status -d "Fetches information about your progress with a given language track"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a submit -d "Submits a new iteration to a problem on exercism.io"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a tracks -d "Lists the available language tracks"
|
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a upgrade -d "Upgrades the CLI to the latest released version"
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -f -n __fish_exercism_no_subcommand -c exercism -a help -d "show help"
|