handleWatchStopCommand stops the running K8s watcher.
()
| 134 | |
| 135 | // handleWatchStopCommand stops the running K8s watcher. |
| 136 | func (ch *CommandHandler) handleWatchStopCommand() { |
| 137 | if !ch.cli.isWatching { |
| 138 | fmt.Println(colorize(i18n.T("watch.error.not_running"), ColorYellow)) |
| 139 | return |
| 140 | } |
| 141 | |
| 142 | ch.cli.StopWatcher() |
| 143 | fmt.Println(colorize(i18n.T("watch.status.stopped"), ColorGreen)) |
| 144 | } |
| 145 | |
| 146 | // handleWatchStatusCommand displays the current K8s watcher status. |
| 147 | func (ch *CommandHandler) handleWatchStatusCommand(ctx context.Context) { |
no test coverage detected