juju / charmstore-client

Client for charmstore.
Other
9 stars 22 forks source link

List command returns a "not logged in message" when not logged in. #190

Open dgnball opened 6 years ago

dgnball commented 6 years ago

This fixes #136

The charm list command now behaves the same way as the charm whoami command when you are not logged in:

$GOPATH/bin/charm list
not logged into https://api.jujucharms.com/charmstore
$GOPATH/bin/charm whoami
not logged into https://api.jujucharms.com/charmstore

It also checks whether the URL is valid and I have added an extra unit test to make sure I have coverage.

jujugui commented 6 years ago

please test this