MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / init

Function init

cmd/login.go:244–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242}
243
244func 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
251func loginMessage(prefix string, result *api.ValidateTokenResult) string {
252 if result != nil && result.Email != "" {

Callers

nothing calls this directly

Calls 1

wrapHelpFunction · 0.85

Tested by

no test coverage detected