cmd

package
v0.0.0-...-9f50c98 Latest Latest
Warning

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

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

Documentation

Overview

Package cmd implements the kaiten CLI commands.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the kaiten CLI version, set at build time.
	Version = "dev"
	// Commit is the git commit the kaiten CLI was built from, set at build time.
	Commit = "HEAD"
	// Date is the build date of the kaiten CLI, set at build time.
	Date = "unknown"
)

Functions

func Execute

func Execute(version, commit, date string)

Execute runs the kaiten CLI with the given version, commit, and date, exiting the process with one of the documented exit codes.

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand builds the root kaiten cobra command with all subcommands registered.

The root command deliberately leaves Args nil so that cobra reports an unknown top-level command with its own "Did you mean this?" suggestions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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