(cmd *cobra.Command)
| 496 | } |
| 497 | |
| 498 | func 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 | |
| 507 | func shouldSkipSubscriptionCheck(cmd *cobra.Command) bool { |
| 508 | if JSONOutput { |
no test coverage detected