-
Notifications
You must be signed in to change notification settings - Fork 26
(maint) Remove warning about missing configuration file #91
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
Conversation
Previously the CLI would emit a warning about missing configuration file, but a configuration file does not appear to be a requirement, at least based on the documentation and the fact that everything can be specified directly on the command line. This commit simply removes the warning. Users will no longer get a warning when doing things like `floaty --version`, `floaty help`, and any other subcommand.
Happy to discuss/iterate on this but getting a WARNING on everything seems a bit off if users can specify everything on the CLI. |
While we're thinking about the configuration file.... if we wanted to help users be aware of it.... Spitballing some ideas:
|
Hey @nwolfe ! That makes sense to me, especially if you can specify every option on the CLI without using a config file. I think as long as things fail gracefully when a config option is missing, we should be ok to remove this noisy warning! Also agreed that it would be good to mention something in the help text about where the config file should be. |
So users can be aware of the configuration file since it will no longer be emitted as a warning during CLI invocation.
I took a stab at this in 8341a5f Help text now looks like:
|
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.
LGTM
I'm finding a few commands that don't have all the CLI args they expect to find in the config file, such as Looking into adding a commit to update at least those. |
To support usage without a configuration file.
Ok with the latest commit 9a44cc4 we can now Get
List
Delete
|
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 Nate!! 👍 as usual haven't really tested this, but the code looks good to me 😄 if someone wants to go through that process that would be cool!
@puppetlabs/dio anything more needed for merge? If not merge away, or I can, or whatever the process is 😄 |
FYI I am mostly stepping away as a merger or validater for this repo. I'm still fine with offering code reviews, but since I don't have access to vmpooler and all that anymore I won't be able to test PRs as much. |
See where/how this is used: https://github.com/puppetlabs/PipelinesInfra/pull/1680 |
@genebean I think we're all good to merge this PR, if your testing indicates that it's good to go (I also don't have access to vmpooler or that PipelinesInfra repo so there's not much I can do to test it, either 🤷 ). |
Previously the CLI would emit a warning about missing configuration
file, but a configuration file does not appear to be a requirement, at
least based on the documentation and the fact that everything can be
specified directly on the command line.
This commit simply removes the warning.
Users will no longer get a warning when doing things like
floaty --version
,floaty help
, and any other subcommand.Reviewers
@puppetlabs/dio
@highb
@briancain