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

Function shouldSkipSubscriptionCheck

cmd/root.go:507–524  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

505}
506
507func shouldSkipSubscriptionCheck(cmd *cobra.Command) bool {
508 if JSONOutput {
509 return true
510 }
511 if cmd == nil {
512 return true
513 }
514 for current := cmd; current != nil; current = current.Parent() {
515 switch current.Name() {
516 case "help", "completion", "version", "login", "logout":
517 return true
518 }
519 }
520 if helpFlag := cmd.Flags().Lookup("help"); helpFlag != nil && helpFlag.Changed {
521 return true
522 }
523 return false
524}
525
526func shouldSkipUpdateCheck(cmd *cobra.Command) bool {
527 if cmd == nil {

Callers 2

kickoffSubscriptionCheckFunction · 0.85

Calls 1

LookupMethod · 0.80

Tested by

no test coverage detected