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

fix: fix type test for common flags #275

Merged
merged 2 commits into from
Sep 21, 2021
Merged

Conversation

danxmoran
Copy link
Contributor

Fixup for #272

@@ -15,6 +15,7 @@ This release upgrades the project to `go` version 1.17.
1. [232](https://github.com/influxdata/influx-cli/pull/232): Don't set empty strings for IDs in permission resources.
1. [236](https://github.com/influxdata/influx-cli/pull/236): Detect and error out on incorrect positional args.
1. [255](https://github.com/influxdata/influx-cli/pull/255): Respect value of `--host` flag when writing CLI configs in `setup`.
1. [272](https://github.com/influxdata/influx-cli/pull/272): Reduce overuse of "token" in help text.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet automated in this repo.

Note this is for the PR that changed the help text in the first place, since this PR is just a fixup for the unreleased logic.

@@ -271,9 +271,9 @@ OPTIONS:
customFunc := make(map[string]interface{})
customFunc["iscommon"] = func(flag cli.Flag) bool {
switch flag.(type) {
case CommonBoolFlag:
case *CommonBoolFlag:
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops - thanks! Must not have tested the final version after switching to the switch statement :(

@danxmoran danxmoran merged commit 9a008c6 into main Sep 21, 2021
@danxmoran danxmoran deleted the dm-fixup-common-option-help branch September 21, 2021 17:26
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.

None yet

2 participants