From b623c255b60d32960786b70a15fe1a8cd4678307 Mon Sep 17 00:00:00 2001 From: Misha Bragin Date: Thu, 12 May 2022 21:57:31 +0200 Subject: [PATCH] Improve output of a status command (#312) --- client/cmd/status.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/cmd/status.go b/client/cmd/status.go index a615a12b5..3aa812d97 100644 --- a/client/cmd/status.go +++ b/client/cmd/status.go @@ -38,12 +38,14 @@ var statusCmd = &cobra.Command{ return fmt.Errorf("status failed: %v", status.Convert(err).Message()) } + cmd.Printf("Status: %s\n\n", resp.GetStatus()) if resp.GetStatus() == string(internal.StatusNeedsLogin) || resp.GetStatus() == string(internal.StatusLoginFailed) { - // todo: update login doc url - cmd.Printf("run the command \"netbird up\" to login. If no SSO provider has been set " + - "in your management server" + - "you can use a setup-key, " + - "see more at https://www.netbird.io/docs/overview/setup-keys for more info") + + cmd.Printf("Run UP command to log in with SSO (interactive login):\n\n" + + " netbird up \n\n" + + "If you are running a self-hosted version and no SSO provider has been configured in your Management Server,\n" + + "you can use a setup-key:\n\n netbird up --management-url --setup-key \n\n" + + "More info: https://www.netbird.io/docs/overview/setup-keys\n\n") } return nil