-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add suppress-version-warning config option (#635)
## 📝 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?** 1. Install the new version of the CLI ```bash make install ``` 2. Go through the configuration process ```bash lin configure ``` 3. The last question should ask you about suppressing API Version Warnings 4. Use the CLI and see if you view this warning ### Environment variable 1. Install the new CLI or delete the value from your config 2. Use the cli after setting the environment variable ```bash export LINODE_CLI_SUPPRESS_VERSION_WARNING=true lin linodes ls unset $LINODE_CLI_SUPPRESS_VERSION_WARNING lin linodes ls ``` 3. Verify the output doesn't have the error. **How do I run the relevant unit/integration tests?** ```bash make testunit ``` resolves #582
- Loading branch information
1 parent
5e6003b
commit c0a860c
Showing
4 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters