mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-10 18:58:27 +02:00
Improve output of a status command (#312)
This commit is contained in:
parent
e5c52efb4c
commit
b623c255b6
@ -38,12 +38,14 @@ var statusCmd = &cobra.Command{
|
|||||||
return fmt.Errorf("status failed: %v", status.Convert(err).Message())
|
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) {
|
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 " +
|
cmd.Printf("Run UP command to log in with SSO (interactive login):\n\n" +
|
||||||
"in your management server" +
|
" netbird up \n\n" +
|
||||||
"you can use a setup-key, " +
|
"If you are running a self-hosted version and no SSO provider has been configured in your Management Server,\n" +
|
||||||
"see more at https://www.netbird.io/docs/overview/setup-keys for more info")
|
"you can use a setup-key:\n\n netbird up --management-url <YOUR_MANAGEMENT_URL> --setup-key <YOUR_SETUP_KEY>\n\n" +
|
||||||
|
"More info: https://www.netbird.io/docs/overview/setup-keys\n\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user