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
Jonathan A. Sternberg
0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2
2020-04-03 12:39:20 -05:00
Stuart Carnie
ffe6344275
feat(cli): Extend example demonstrating pflag.Value
2020-03-05 08:30:04 -07: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
030e11a82a
feat: Allow existing influxdb.ID type to be used as a pflag
2019-07-09 09:20:02 +10:00
Stuart Carnie
46952afe37
feat(influxd): New influxd verify tsm-blocks command
...
This command performs verification of TSM blocks
* expected and actual CRC-32 checksums match
* expected and actual min and max timestamps match decoded
data
2019-07-09 09:00:41 +10: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