Skip to content
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

cli: bump the cobra dependency and add autocompletion for fish #63839

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

knz
Copy link
Contributor

@knz knz commented Apr 19, 2021

Fixes #63838 .
Fixes #50187.

This updates the cobra dep which hadn't been updated since 2017.

Also picks up the new support for fish autocompletions.

Release note (cli change): Certain errors caused by invalid
command-line arguments are now printed on the process' standard
error stream, instead of standard output.

Release note (cli change): The cockroach gen autocomplete command
has been updated and can now produce autocompletion definitions
for the fish shell.

@knz knz requested review from stevendanna and otan April 19, 2021 11:37
@knz knz requested a review from a team as a code owner April 19, 2021 11:37
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz force-pushed the 20210419-cobra branch 2 times, most recently from ac7543a to 8378a27 Compare April 19, 2021 12:27
Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 7 of 7 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @knz and @otan)

a discussion (no related file):
Looks reasonable to me. I wonder if upstream would take an option to disable the automatic generation of options. But, until they do, the workaround looks reaosnable.


This updates the cobra dep which hadn't been updated since 2017.

Also picks up the new support for fish autocompletions.

Release note (cli change): Certain errors caused by invalid
command-line arguments are now printed on the process' standard
error stream, instead of standard output.

Release note (cli change): The `cockroach gen autocomplete` command
has been updated and can now produce autocompletion definitions
for the `fish` shell.
@knz knz force-pushed the 20210419-cobra branch from 8378a27 to e757cb5 Compare April 19, 2021 18:16
@knz
Copy link
Contributor Author

knz commented Apr 19, 2021

TFYR!

bors r=stevendanna

1 similar comment
@knz
Copy link
Contributor Author

knz commented Apr 19, 2021

TFYR!

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Apr 19, 2021

Already running a review

@craig
Copy link
Contributor

craig bot commented Apr 19, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deps: update spf13/cobra cli: update bash and zsh completions
3 participants