cmd

package
v5.28.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 29 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 NewChatCmd added in v5.24.0

func NewChatCmd(_ *runtime.Runtime) *cobra.Command

NewChatCmd creates and returns the chat command.

func NewMCPCmd added in v5.26.0

func NewMCPCmd(_ *runtime.Runtime) *cobra.Command

NewMCPCmd creates and returns the mcp command.

func NewRootCmd

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

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

func WrapToolsWithPermissionAndModeMetadata added in v5.26.0

func WrapToolsWithPermissionAndModeMetadata(
	tools []copilot.Tool,
	eventChan chan tea.Msg,
	agentModeRef *chatui.AgentModeRef,
	toolMetadata map[string]toolgen.ToolDefinition,
) []copilot.Tool

WrapToolsWithPermissionAndModeMetadata wraps ALL tools with mode enforcement and permission prompts. In plan mode, ALL tool execution is blocked (model can only describe what it would do). In agent mode, edit tools require permission (based on RequiresPermission annotation), while read-only tools are auto-approved.

Types

This section is empty.

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.
Package workload provides the workload command namespace.
Package workload provides the workload command namespace.
gen
Package gen provides the gen command namespace for generating Kubernetes resources.
Package gen provides the gen command namespace for generating Kubernetes resources.

Jump to

Keyboard shortcuts

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