Commit Graph

28 Commits (485968cce4b5b101ebfcb6ccf073fe8e8e9d6a91)

Author SHA1 Message Date
Dane Strandboge 82d1123e78
build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran 49b83b58ee
refactor: remove panics from CLI kit code and influxd CLI setup (#20863) 2021-03-04 17:18:21 -05:00
Daniel Moran 1ad8f8d23d
fix(kit/cli): fix loading config from directories with '.' in the name (#20702) 2021-02-05 10:56:12 -05:00
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
Stuart Carnie 26c18ac0a5
chore: Converging on 1.x tsdb 2020-08-03 09:20:48 -07:00
Edd Robinson 2b175291be
refactor: WIP removing tsbd 2020-08-03 09:18:34 -07: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 ce6827c214 chore(cli): extend tests for CLI to capture how flags with `-` are in configs
the config for a daemon should use keys that match the flags of the
daemon it is provided too.
2020-06-17 14:52:03 -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
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