()
| 242 | } |
| 243 | |
| 244 | func init() { |
| 245 | loginCmd.SetHelpFunc(wrapHelp(helpmenus.RenderLoginHelp)) |
| 246 | |
| 247 | rootCmd.AddCommand(loginCmd) |
| 248 | loginCmd.Flags().StringVar(&loginToken, "token", "", "Authenticate directly with a token instead of opening browser") |
| 249 | } |
| 250 | |
| 251 | func loginMessage(prefix string, result *api.ValidateTokenResult) string { |
| 252 | if result != nil && result.Email != "" { |
nothing calls this directly
no test coverage detected