-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added exercism completion #4495
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function __fish_exercism_no_subcommand -d 'Test if exercism has yet to be given the subcommand' | ||
for i in (commandline -opc) | ||
if contains -- $i demo debug configure fetch restore submit unsubmit tracks download help | ||
return 1 | ||
end | ||
end | ||
return 0 | ||
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" | ||
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 to your most recent iteration of a problem given the track ID and problem slug." | ||
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 'unsubmit' -d "REMOVED" | ||
complete -f -n '__fish_exercism_no_subcommand' -c exercism -a 'upgrade' -d "Upgrades the CLI to the latest released version." | ||
complete -f -n '__fish_exercism_no_subcommand' -c exercism -a 'help' -d "show help" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These variables will be expanded when the completion is loaded. Do you want that?