-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapted the CLI consuming the HTTP/JSON network API (#1178)
## Problem Ideally, the CLI and the web UI should use the same interface to interact with Agama. As it is a time that may take some time lets start updating the network configuration as it stopped to work once we moved to the HTTP/JSON API. - [*Trello*](https://trello.com/c/R0kSx0OP/3649-8-adapt-the-auto-installation-process-to-use-the-http-api-networking) ## Solution Adapted the CLI using the HTTP/JSON API. For authentication the stored JWT token or the agama-live token will be used when exist. Cookires are enabled just in case in the future we wanted to save them to a file and restoring when the client is obtained. Last but not least, rpassword was added for hidding the password when it is entered for authentication. ## Testing - *Added a new unit test* - *Tested manually*
- Loading branch information
Showing
18 changed files
with
425 additions
and
559 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.