SetWatching configures the K8s watcher state for the CLI.
(active bool, statusFunc func() string)
| 12 | |
| 13 | // SetWatching configures the K8s watcher state for the CLI. |
| 14 | func (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. |
| 20 | func (cli *ChatCLI) StartWatcher(ctx context.Context, cfg k8s.WatchConfig) error { |
no outgoing calls
no test coverage detected