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

Function showCachedSubscriptionWarning

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

Source from the content-addressed store, hash-verified

496}
497
498func showCachedSubscriptionWarning(cmd *cobra.Command) {
499 if shouldSkipSubscriptionCheck(cmd) {
500 return
501 }
502 if msg := pastdue.CachedWarning(); msg != "" {
503 fmt.Fprintln(os.Stderr, tui.ErrorStyle().Render("⚠ Warning: "+msg))
504 }
505}
506
507func shouldSkipSubscriptionCheck(cmd *cobra.Command) bool {
508 if JSONOutput {

Callers 1

initFunction · 0.85

Calls 3

CachedWarningFunction · 0.92
ErrorStyleFunction · 0.92

Tested by

no test coverage detected