MCPcopy Create free account
hub / github.com/diillson/chatcli / handleWatchStopCommand

Method handleWatchStopCommand

cli/command_handler_watch.go:136–144  ·  view source on GitHub ↗

handleWatchStopCommand stops the running K8s watcher.

()

Source from the content-addressed store, hash-verified

134
135// handleWatchStopCommand stops the running K8s watcher.
136func (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.
147func (ch *CommandHandler) handleWatchStatusCommand(ctx context.Context) {

Callers 1

handleWatchCommandMethod · 0.95

Calls 3

TFunction · 0.92
colorizeFunction · 0.85
StopWatcherMethod · 0.80

Tested by

no test coverage detected