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

Method SetWatching

cli/cli_watcher.go:14–17  ·  view source on GitHub ↗

SetWatching configures the K8s watcher state for the CLI.

(active bool, statusFunc func() string)

Source from the content-addressed store, hash-verified

12
13// SetWatching configures the K8s watcher state for the CLI.
14func (cli *ChatCLI) SetWatching(active bool, statusFunc func() string) {
15 cli.isWatching = active
16 cli.watchStatusFunc = statusFunc
17}
18
19// StartWatcher creates and starts a K8s watcher in background from interactive mode.
20func (cli *ChatCLI) StartWatcher(ctx context.Context, cfg k8s.WatchConfig) error {

Callers 3

StartWatcherMethod · 0.95
StopWatcherMethod · 0.95
RunWatchFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected