run

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package run implements the `kuke run` verb. The original `-f <file>` form (phase 1c) parses a single-cell YAML doc and idempotently create-and-starts the cell. Phase 2a added `-a/--attach` so the same invocation can drop the operator into the cell's attachable terminal. Phase 2b adds `-p/--profile`, which materializes a CellDoc from a per-user CellProfile under $HOME/.kuke/profiles.d (or $KUKE_PROFILES_DIR) and then walks the same create+start[+attach] path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunCmd

func NewRunCmd() *cobra.Command

NewRunCmd builds the `kuke run` cobra command. `-f` reads a single-cell YAML doc; `-p` reads a per-user CellProfile and materializes the same CellDoc shape. Exactly one of the two is required. `-a` then drops the operator into the cell's attachable terminal once the cell is up.

Types

type MockControllerKey

type MockControllerKey struct{}

MockControllerKey is used to inject a mock kukeonv1.Client via context in tests.

type MockRunKey

type MockRunKey struct{}

MockRunKey is used to inject a mock runFn via context in tests, so the real pkg/attach.Run (which would open a TTY and connect to a real control socket) is bypassed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL