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 ¶
- func Execute(cmd *cobra.Command) error
- func NewChatCmd(_ *runtime.Runtime) *cobra.Command
- func NewMCPCmd(_ *runtime.Runtime) *cobra.Command
- func NewRootCmd(version, commit, date string) *cobra.Command
- func WrapToolsWithPermissionAndModeMetadata(tools []copilot.Tool, eventChan chan tea.Msg, ...) []copilot.Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChatCmd ¶ added in v5.24.0
NewChatCmd creates and returns the chat command.
func NewRootCmd ¶
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. |