Closed mkuziemko closed 2 years ago
Changes proposed in this pull request:
ListHubServer
Keys
$ ./bin/capact-linux-amd64 config get-contexts SERVER AUTH TYPE DEFAULT ---------+-----------+----------
$ ./bin/capact-linux-amd64 login ? Gateway's server address: localhost:8080 ? Username: test ? Password: **** Login Succeeded
SERVER AUTH TYPE DEFAULT -------------------------+------------+---------- https://localhost:8080 Basic Auth NO
$ ./bin/capact-linux-amd64 login ? Gateway's server address: test.com ? Username: test ? Password: **** Login Succeeded
$ ./bin/capact-linux-amd64 config get-contexts SERVER AUTH TYPE DEFAULT -------------------------+------------+---------- https://localhost:8080 Basic Auth YES https://test.com Basic Auth NO
5. Verify if the contexts exists in created config file:
availablecontexts:
## Related issue(s)
Description
Changes proposed in this pull request:
ListHubServer
which usedKeys
method. Migrate to config storage. (more context here)Tests
$ ./bin/capact-linux-amd64 config get-contexts SERVER AUTH TYPE DEFAULT
-------------------------+------------+---------- https://localhost:8080 Basic Auth YES
https://test.com Basic Auth NO
availablecontexts: