fix: fix type test for common flags (#275)
This commit is contained in:
@ -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. [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. [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. [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]
|
## v2.1.0 [2021-07-29]
|
||||||
|
|
||||||
|
@ -271,9 +271,9 @@ OPTIONS:
|
|||||||
customFunc := make(map[string]interface{})
|
customFunc := make(map[string]interface{})
|
||||||
customFunc["iscommon"] = func(flag cli.Flag) bool {
|
customFunc["iscommon"] = func(flag cli.Flag) bool {
|
||||||
switch flag.(type) {
|
switch flag.(type) {
|
||||||
case CommonBoolFlag:
|
case *CommonBoolFlag:
|
||||||
return true
|
return true
|
||||||
case CommonStringFlag:
|
case *CommonStringFlag:
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user