cmd

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface for KSail.

This package contains all CLI commands and subcommands for the KSail application, including initialization, cluster management (up, down, start, stop, status, list), and other utility commands for working with local Kubernetes clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(cmd *cobra.Command) error

Execute runs the provided root command and handles errors.

func HandleInitRunE

func HandleInitRunE(
	cmd *cobra.Command,
	cfgManager *ksailconfigmanager.ConfigManager,
	deps InitDeps,
) error

HandleInitRunE handles the init command.

func NewInitCmd

func NewInitCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewInitCmd creates and returns the init command.

func NewRootCmd

func NewRootCmd(version, commit, date string) *cobra.Command

NewRootCmd creates and returns the root command with version info and subcommands.

Types

type InitDeps

type InitDeps struct {
	Timer timer.Timer
}

InitDeps captures dependencies required for the init command.

Directories

Path Synopsis
Package cipher provides the cipher command for integrating with SOPS.
Package cipher provides the cipher command for integrating with SOPS.
Package cluster groups all KSail cluster lifecycle Cobra commands under a single namespace.
Package cluster groups all KSail cluster lifecycle Cobra commands under a single namespace.
testutils
Package testutils provides shared helpers for cluster command tests.
Package testutils provides shared helpers for cluster command tests.
internal
shared
Package shared provides reusable helpers for command wiring.
Package shared provides reusable helpers for command wiring.
testutils
Package testutils provides testing helpers for command testing (command-layer specific).
Package testutils provides testing helpers for command testing (command-layer specific).
Package workload provides the workload command namespace.
Package workload provides the workload command namespace.

Jump to

Keyboard shortcuts

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