Documentation
¶
Overview ¶
Command kc is a keyboard-driven, Midnight-Commander-style CLI for daily Kubernetes operations. See SPEC.md for the design.
This entrypoint is deliberately thin: it resolves the runtime context (kube context for the cache key, repo context for the entry point), wires the data layer's caches + learning store into the TUI model, and runs the Bubble Tea program. All views / navigation / optimistic-render logic live in internal/tui; all Kubernetes/git/GitHub access lives in internal/*.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
cache
Package cache is the typed snapshot cache that makes kc startup feel instant.
|
Package cache is the typed snapshot cache that makes kc startup feel instant. |
|
deploy
Package deploy holds the mutating code in kc: the imperative `kubectl set image` that the confirm-gated deploy flow runs, the `kubectl rollout restart` the restart op runs, the `kubectl scale` the scale op runs, plus the `kubectl rollout status` they all watch afterwards (SPEC "Deploy flow (v1)" / "Operations").
|
Package deploy holds the mutating code in kc: the imperative `kubectl set image` that the confirm-gated deploy flow runs, the `kubectl rollout restart` the restart op runs, the `kubectl scale` the scale op runs, plus the `kubectl rollout status` they all watch afterwards (SPEC "Deploy flow (v1)" / "Operations"). |
|
exec
Package exec is the one place kc reaches the outside world.
|
Package exec is the one place kc reaches the outside world. |
|
git
Package git derives repo context from the cwd.
|
Package git derives repo context from the cwd. |
|
github
Package github wraps the `gh` CLI for the deploy flow's version list.
|
Package github wraps the `gh` CLI for the deploy flow's version list. |
|
k8s
Package k8s holds the kc data layer's Kubernetes domain types and the read-only kubectl wrappers + pure parsers that produce them.
|
Package k8s holds the kc data layer's Kubernetes domain types and the read-only kubectl wrappers + pure parsers that produce them. |
|
resolve
Package resolve maps a repo's GHCR image to the namespaces running it.
|
Package resolve maps a repo's GHCR image to the namespaces running it. |
|
store
Package store is the generic learning store (ActionHistory).
|
Package store is the generic learning store (ActionHistory). |
|
tui
Package tui is the kc Bubble Tea application: the one-stack zoom navigation over the read-only data layer, with optimistic render-from-cache + background refresh.
|
Package tui is the kc Bubble Tea application: the one-stack zoom navigation over the read-only data layer, with optimistic render-from-cache + background refresh. |
Click to show internal directories.
Click to hide internal directories.