-
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
Update Events, Exec, Export, History, Images, Import, Inspect, Load, and Login subcommand fish completions #1061
Conversation
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers <[email protected]>
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.
LGTM 🐯
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.
LGTM, nice!
complete -c docker -A -f -n '__fish_seen_subcommand_from export' -a '(__fish_print_docker_containers all)' -d "Container" | ||
|
||
# history | ||
complete -c docker -f -n '__fish_docker_no_subcommand' -a history -d 'Show the history of an image' | ||
complete -c docker -A -f -n '__fish_seen_subcommand_from history' -l format -d 'Pretty-print images using a Go template' |
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.
Looks like we have some inconsistency in the flag description for --format
between commands (Pretty-print images using a Go template
vs Format the output using the given Go template
.
Perhaps you're interested in doing a follow-up to use a consistent description for all commands?
@@ -324,6 +335,7 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -a inspect -d 'Return low | |||
complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -s f -l format -d 'Format the output using the given go template.' | |||
complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -l help -d 'Print usage' | |||
complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -s s -l size -d 'Display total file sizes if the type is container.' | |||
complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -l type -d 'Return JSON for specified type' |
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.
Also one worth updating in the actual CLI (thinking of something like "Only return objects of the specified type")
|
||
# login | ||
complete -c docker -f -n '__fish_docker_no_subcommand' -a login -d 'Log in to a Docker registry server' | ||
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -l help -d 'Print usage' | ||
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s p -l password -d 'Password' | ||
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -l password-stdin -d 'Read password from stdin' | ||
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -l password-stdin -d 'Take the password from stdin' |
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.
Heh, I liked the other one better (But I see the CLI uses the new one) 😂
continuing #977 and #1005.
This updates the fish completions for Events, Exec, Export, History, Images, Import, Inspect, Load, and Login.