-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix bash completion bugs #280
Conversation
Actually I realized we're using v1 of the bash completion script: https://github.com/urfave/cli/blob/master/autocomplete/bash_autocomplete Apparently this fixes bugs with args with colons and quotes: urfave/cli#1674 Is there an intention to move to v2/v3 of the script? Fixing bugs is nice but it works on commands, which is the major win, and the dependency is annoying, since I want to enable this in the admin-tools image (there is an alpine package though so it could be done). |
@@ -15,7 +15,7 @@ require ( | |||
github.com/stretchr/testify v1.8.4 | |||
github.com/temporalio/tctl-kit v0.0.0-20230328153839-577f95d16fa0 | |||
github.com/temporalio/ui-server/v2 v2.16.2 | |||
github.com/urfave/cli/v2 v2.23.6 | |||
github.com/urfave/cli/v2 v2.25.7 |
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 wonder if this is no longer the case for urfave/cli > v2.23.6 https://github.com/temporalio/cli/blob/d37f65cec42f708370ec06d3cf92088ce71eb827/Makefile#L20C147-L20C147
Since we now have e2e setup i'll likely rewrite this test with an actual workflow input
Line 127 in d37f65c
func (s *cliAppSuite) TestAcceptStringSliceArgsWithCommas() { |
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.
Hmm.. I just tested it and it seems to work. Should I delete the pinned dependency?
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.
Any thoughts on the dependency and script version? I'm tempted to leave it on the old script and live with the bugs in exchange for no dependencies
@@ -15,7 +15,7 @@ require ( | |||
github.com/stretchr/testify v1.8.4 | |||
github.com/temporalio/tctl-kit v0.0.0-20230328153839-577f95d16fa0 | |||
github.com/temporalio/ui-server/v2 v2.16.2 | |||
github.com/urfave/cli/v2 v2.23.6 | |||
github.com/urfave/cli/v2 v2.25.7 |
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.
Hmm.. I just tested it and it seems to work. Should I delete the pinned dependency?
We may move to |
Ok, I'll update the script and revert the README changes |
What was changed
-o nospace
in suggested bash completion functionWhy?
Makes completing deep subcommands work correctly and easily
Checklist
Closes
How was this tested:
manually
Any docs updates needed?