(maint) Remove warning about missing configuration file#91
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: |
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 |
briancain
left a comment
There was a problem hiding this comment.
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