influxdb/cmd/influx
Adrian Thurston e0543e6e3a
fix: various improvements to setup command (#20155)
When checking for existing configs, check the length of the array after
parsing. There could be an empty config file present.

If --name was specified then use that as the configuration name, regardless of
whether or not there are existing configs.

Allow a 0 (infinite) retention to be specified with --retention when in
interactive mode.


Co-authored-by: Dan Moran <dmoran@influxdata.com>
2020-12-02 10:39:56 -05:00
..
config fix: switch port to 8086 2020-09-03 14:40:29 -07:00
internal refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
authorization.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
backup.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
bucket.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
bucket_test.go fix(influx): drop global flags and replace with locals 2020-06-24 15:33:06 -07:00
completion.go fix(influx): update completion cmd with more accurate help message 2020-03-17 08:15:38 -07:00
config.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
config_test.go fix: switch port to 8086 2020-09-03 14:40:29 -07:00
dashboard.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
delete.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
main.go feat(cmd/influx): add hints to ID-related errors in DBRP CLI commands (#20204) 2020-12-01 10:52:54 -05:00
organization.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
organization_test.go fix(influx): drop global flags and replace with locals 2020-06-24 15:33:06 -07:00
ping.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
query.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
restore.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
secret.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
secret_test.go fix(influx): drop global flags and replace with locals 2020-06-24 15:33:06 -07:00
setup.go fix: various improvements to setup command (#20155) 2020-12-02 10:39:56 -05:00
task.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
telegraf.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
template.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
template_test.go feat(pkger): extend stacks API with uninstall ability 2020-07-09 17:05:53 -07:00
transpile.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
user.go refactor(kv): delete deprecated kv service code 2020-11-16 12:41:26 +00:00
user_test.go chore: update staticcheck and fix newly identified lint checks (#18737) 2020-06-26 18:54:09 -05:00
v1_authorization.go feat(cmd/influx): add hints to ID-related errors in DBRP CLI commands (#20204) 2020-12-01 10:52:54 -05:00
v1_commands.go feat(cmd/influx): Add DBRP cli commands as `influx v1 dbrp` (#20067) 2020-11-17 15:14:55 -05:00
v1_dbrp.go chore: adjust help text based on PR feedback 2020-11-18 10:54:19 -05:00
write.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
write_test.go chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00