-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devmate/cli: Add CLI Configuration Management for Server Address and …
…Port. Enable users to dynamically set up their connection settings and have them persist across multiple CLI runs. - Introduced a new class, DevmateServer, to handle the server's protocol, address, and port. - Added save_config, load_config, and get_config_path functions to manage the CLI configuration in a JSON file. - Implemented a 'configure' command to set server protocol, address, and port via CLI. - Changed existing REST API calls to use the dynamically configured server details. - Updated main function to check for configuration before proceeding with other commands. BREAKING CHANGE: This update breaks existing client unit tests. These will need to be updated to accommodate the new configuration management features. Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
- Loading branch information
1 parent
0b6517f
commit c79df3d
Showing
1 changed file
with
72 additions
and
15 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