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
Add completions for Mariner #5718
Conversation
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.
Remove trailing "." from descriptions, use less quoting.
Otherwise this looks nice!
share/completions/mariner.fish
Outdated
|
||
# Global options | ||
complete -f -n "__fish_use_subcommand $subcommands" -c mariner -l 'version' --description "Show program's version number and exit" | ||
complete -f -n "__fish_use_subcommand $subcommands" -c mariner -s 'v' -l 'verbose' --description "Increase verbosity of output. Can be repeated." |
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.
Not all arguments need to be quoted. And while you shouldn't always check if something has to be quoted or not, if it's one simple word it shouldn't be - -s v -l verbose
is nicer to look at, and saves 4 characters which makes the line a bit shorter.
Also the description should not end in a period (space is at a premium for descriptions because every character less makes it more likely that you can fit more columns).
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.
I have a habit to quote all strings, so syntax checker picks them up :]. I've removed them sin the following commit.
Good observation on the periods! I should remove them from Mariner itself as well.
share/completions/mariner.fish
Outdated
set -l subcommands complete config details download help magnet open search | ||
|
||
# Subcommands | ||
complete -f -n "__fish_use_subcommand $subcommands" -c mariner -a 'complete' --description "Print bash completion command (cliff)" |
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.
What does that "cliff" mean here?
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.
It's just a comment that comes from the underlying CLI framework. I've removed it.
Merged, thanks! |
Description
Add completions for Mariner.
Fixes issue #
TODOs: