deis / workflow-cli

The CLI for Deis Workflow
http://deis.com
MIT License
31 stars 43 forks source link

feat(cmd): only print version mismatch warning once #223

Closed Joshua-Anderson closed 8 years ago

Joshua-Anderson commented 8 years ago

Also adds addational tests to the file.

Fixes #120

deis-bot commented 8 years ago

@kmala, @helgi and @mboersma are potential reviewers of this pull request based on my analysis of git blame information. Thanks @Joshua-Anderson!

ultimateboy commented 8 years ago

Lookin good!

Before

$ deis register $DEIS_CONTROLLER_URL
!    WARNING: Client and server API versions do not match. Please consider upgrading.
!    Client version: 2.3
!    Server version: 2.2
username: testing
password:
password (confirm):
email: testing@example.com
!    WARNING: Client and server API versions do not match. Please consider upgrading.
!    Client version: 2.3
!    Server version: 2.2
Registered testing
!    WARNING: Client and server API versions do not match. Please consider upgrading.
!    Client version: 2.3
!    Server version: 2.2
Logged in as testing
Configuration file written to /Users/matttucker/.deis/client.json

After

$ deis register $DEIS_CONTROLLER_URL
!    WARNING: Client and server API versions do not match. Please consider upgrading.
!    Client version: 2.3
!    Server version: 2.2
username: testing2
password:
password (confirm):
email: testing2@example.com
Registered testing2
Logged in as testing2
Configuration file written to /Users/matttucker/.deis/client.json