linode-cli
linode-cli copied to clipboard
Add suppress-version-warning config option
📝 Description
What does this PR do and why is this change necessary?
Adds get_bool('value') method for configuration options and adds a step in configuration to support suppress-version-warning.
Also adds support for LINODE_CLI_SUPPRESS_VERSION_WARNING environment variable.
✔️ How to Test
What are the steps to reproduce the issue or verify the changes?
- Install the new version of the CLI
make install
- Go through the configuration process
lin configure
- The last question should ask you about suppressing API Version Warnings
- Use the CLI and see if you view this warning
Environment variable
- Install the new CLI or delete the value from your config
- Use the cli after setting the environment variable
export LINODE_CLI_SUPPRESS_VERSION_WARNING=true
lin linodes ls
unset $LINODE_CLI_SUPPRESS_VERSION_WARNING
lin linodes ls
- Verify the output doesn't have the error.
How do I run the relevant unit/integration tests?
make testunit
resolves #582