fix: fix type test for common flags (#275)

This commit is contained in:
Daniel Moran
2021-09-21 13:26:21 -04:00
committed by GitHub
parent dfc6f00982
commit 9a008c6b26
2 changed files with 3 additions and 2 deletions

View File

@ -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.
## v2.1.0 [2021-07-29]

View File

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