run

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package run implements the `kuke run` verb. The `-f <file>` form parses a single-cell YAML doc and idempotently create-and-starts the cell; the `-p/--profile` form materializes a CellDoc from a per-user CellProfile under $HOME/.kuke/profiles.d (or $KUKE_PROFILES_DIR) and walks the same path.

`kuke run` attaches to the cell's attachable container by default, matching `docker run` and `kubectl run -it`. Pass `-d/--detach` to return immediately after start without attaching.

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. By default, after the cell starts the CLI drops the operator into the cell's attachable terminal; `-d/--detach` opts out of the post-start attach.

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