-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: various improvements to setup command #20155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes, they look great! Could you add a line to CHANGELOG.md?
I'll get this one over the finish line. |
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.
d7f8d98
to
8465857
Compare
8465857
to
839c30c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
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>
Thanks @danxmoran and @ayang64. Came back today to work on it and saw you took care of it. I've been wrapping up a move into a new apartment and haven't been moving on things as quickly as I'd like! |
No worries 😄 hope the move went well! |
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>
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>
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.