Daniel Moran
4239d037d6
fix(kit/cli): fix loading of .yml config files ( #20522 )
2021-01-15 17:04:20 -08:00
Daniel Moran
78af2e7317
fix(kit/cli): don't ignore failures to mark CLI options as required ( #20490 )
2021-01-13 07:25:16 -08:00
Daniel Moran
4235c12d64
refactor(cmd/influxd): parse log-level CLI opts directly to correct type ( #20196 )
2020-11-30 13:59:06 -05:00
Dan Moran
a952dff92d
feat(kit/cli): add support for int32 and int64 CLI flags
2020-11-24 13:36:27 -05:00
Stuart Carnie
42aabb28fc
chore: Do not use global viper APIs, which breaks testing
2020-11-13 08:47:52 +11:00
Stuart Carnie
ae980c3549
feat: Support influxdb.ID as bindable argument in kit/cli
2020-11-09 15:22:05 -05:00
Johnny Steenbergen
81490d6604
feat(influx): fixup config file env var naming and add support for config directory
2020-06-18 17:09:46 -07:00
Johnny Steenbergen
285502a8ae
feat(cli): extend Program with config file
...
closes : #18565
2020-06-17 10:52:31 -07:00
Johnny Steenbergen
1d75e3e8e9
feat(influx): provide means to provide trace debug ids to httpc client
2020-06-09 18:18:43 -07:00
Gavin Cabbage
95913534a0
feat(kit/feature): add feature flag package ( #17851 )
...
* feat(kit/feature): add feature flag package
* refactor(kit/feature/_codegen): simplify with fmt.Errorf
* chore(kit/feature): tidy comments
2020-04-30 11:29:43 -04:00
Stuart Carnie
9335800af1
feat(cli): Extend flag support to pflag.Value types
...
Allows custom types that implement the pflag.Value interface,
which simplifies validation and error handling of flag processing.
2020-03-05 08:21:13 -07:00
Johnny Steenbergen
89939dea4e
fix(influx): add env vars to cli usage and normalize usage and flag/env var priority
...
also rids us of the cobra tutorial code and encapsulates things into funcs
2020-01-10 15:20:15 -08:00
Stuart Carnie
e8045ae187
feat(influxd): Migrate influxd binary to cobra Command package
...
This commit consists of several improvements or changes:
* migrate the influxd binary to cobra.Command
* introduce a default run sub-command to start the server
* register the run sub-command flags with viper
to maintain compatibility with the existing behavior of automatic
binding of flags to environment variables.
Closes #12602
2019-03-14 09:23:53 -07:00
Jacob Marble
fb4cd36e9b
kit/cli: Add support for []string
2018-10-03 11:24:46 -07:00
Jacob Marble
0f1abf11bf
kit/cli: Add boolean and duration flag types
2018-09-06 09:57:43 -07:00
Chris Goller
70f5eae423
feat(kit/cli): add viper simplification
2018-07-17 22:52:37 -05:00