cli

package
v5.36.4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package cli provides reusable helpers for command wiring and execution.

Subpackages:

  • annotations: Command annotation constants
  • cmd: Cobra command implementations for cluster, cipher, chat, mcp, and workload
  • dockerutil: Docker client lifecycle helpers
  • editor: Editor resolution for interactive editing
  • flags: CLI flag parsing helpers
  • kubeconfig: Kubeconfig path resolution
  • lifecycle: Cluster lifecycle command helpers (start, stop, delete, etc.)
  • setup: Cluster create command helpers, installer factories, and registry setup
  • ui: User interface components (asciiart, chat TUI, confirm, errorhandler)

Directories

Path Synopsis
Package annotations provides constants for annotating Cobra commands to control AI tool generation, permission requirements, and command consolidation.
Package annotations provides constants for annotating Cobra commands to control AI tool generation, permission requirements, and command consolidation.
cmd
Package cmd provides the command-line interface for KSail.
Package cmd provides the command-line interface for KSail.
chat
Package chat implements the AI-assisted chat command.
Package chat implements the AI-assisted chat command.
cipher
Package cipher provides the cipher command for integrating with SOPS.
Package cipher provides the cipher command for integrating with SOPS.
cluster
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.
mcp
Package mcp implements the MCP server command.
Package mcp implements the MCP server command.
workload
Package workload provides the workload command namespace.
Package workload provides the workload command namespace.
workload/gen
Package gen provides the gen command namespace for generating Kubernetes resources.
Package gen provides the gen command namespace for generating Kubernetes resources.
Package dockerutil provides Docker client lifecycle management utilities.
Package dockerutil provides Docker client lifecycle management utilities.
Package editor provides editor configuration resolution with proper precedence.
Package editor provides editor configuration resolution with proper precedence.
Package flags provides CLI flag handling utilities including benchmark timing.
Package flags provides CLI flag handling utilities including benchmark timing.
Package kubeconfig provides helpers for resolving kubeconfig file paths.
Package kubeconfig provides helpers for resolving kubeconfig file paths.
Package lifecycle provides cluster lifecycle command helpers.
Package lifecycle provides cluster lifecycle command helpers.
Package setup provides helpers for cluster creation and setup workflows.
Package setup provides helpers for cluster creation and setup workflows.
localregistry
Package localregistry provides local registry lifecycle operations for cluster commands.
Package localregistry provides local registry lifecycle operations for cluster commands.
mirrorregistry
Package mirrorregistry provides mirror registry setup and connection stages for cluster creation.
Package mirrorregistry provides mirror registry setup and connection stages for cluster creation.
ui
Package ui provides user interface components for KSail CLI.
Package ui provides user interface components for KSail CLI.
asciiart
Package asciiart provides ASCII art printing functionality for KSail.
Package asciiart provides ASCII art printing functionality for KSail.
chat
Package chat provides an interactive Bubbletea TUI for conversing with GitHub Copilot.
Package chat provides an interactive Bubbletea TUI for conversing with GitHub Copilot.
confirm
Package confirm provides confirmation prompt utilities for destructive operations.
Package confirm provides confirmation prompt utilities for destructive operations.
errorhandler
Package errorhandler centralizes Cobra command execution with KSail's error formatting rules.
Package errorhandler centralizes Cobra command execution with KSail's error formatting rules.

Jump to

Keyboard shortcuts

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