8000 feat: add version checking to CLI by sreya · Pull Request #2643 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add version checking to CLI #2643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 29, 2022
Prev Previous commit
Next Next commit
some merge woes
  • Loading branch information
sreya committed Jun 27, 2022
commit 67966e77b018350d0b2278b3498b267298f5eaa9
4 changes: 1 addition & 3 deletions cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
var (
errUnauthenticated = xerrors.New(notLoggedInMessage)
varSuppressVersion = false
envSessionToken = "CODER_SESSION_TOKEN"
envSessionToken = "CODER_SESSION_TOKEN"
)

func init() {
Expand Down Expand Up @@ -128,8 +128,6 @@ func Root() *cobra.Command {

cmd.PersistentFlags().String(varURL, "", "Specify the URL to your deployment.")
cliflag.BoolVarP(cmd.PersistentFlags(), &varSuppressVersion, "no-version-warning", "", envNoVersionCheck, false, "Suppress warning when client and server versions do not match.")
=======
>>>>>>> main
_ = cmd.PersistentFlags().MarkHidden(varAgentToken)
cliflag.String(cmd.PersistentFlags(), varAgentURL, "", "CODER_AGENT_URL", "", "Specify the URL for an agent to access your deployment.")
_ = cmd.PersistentFlags().MarkHidden(varAgentURL)
Expand Down
2912
0