cmd

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptExampleForAlias

func AdaptExampleForAlias(example, originalCmd, aliasCmd string) string

AdaptExampleForAlias replaces the original command with the alias command in the example string, but only in command lines (not in comments). This is useful for alias commands that want to inherit examples from their original commands while showing the alias syntax.

Example:

original := `# List all workspaces
kdn workspace list

# List in JSON format
kdn workspace list --output json`

adapted := AdaptExampleForAlias(original, "workspace list", "list")
// Result:
// `# List all workspaces
// kdn list
//
// # List in JSON format
// kdn list --output json`

func NewAutoconfCmd added in v0.9.0

func NewAutoconfCmd() *cobra.Command

NewAutoconfCmd returns the autoconf command.

func NewDashboardCmd added in v0.6.0

func NewDashboardCmd() *cobra.Command

func NewInfoCmd

func NewInfoCmd() *cobra.Command

func NewInitCmd

func NewInitCmd() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

func NewOpenCmd added in v0.9.0

func NewOpenCmd() *cobra.Command

func NewRemoveCmd

func NewRemoveCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewRuntimeCmd added in v0.11.0

func NewRuntimeCmd() *cobra.Command

func NewRuntimeListCmd added in v0.11.0

func NewRuntimeListCmd() *cobra.Command

func NewSecretCmd added in v0.6.0

func NewSecretCmd() *cobra.Command

func NewSecretCreateCmd added in v0.6.0

func NewSecretCreateCmd() *cobra.Command

func NewSecretListCmd added in v0.6.0

func NewSecretListCmd() *cobra.Command

func NewSecretRemoveCmd added in v0.6.0

func NewSecretRemoveCmd() *cobra.Command

func NewServiceCmd added in v0.6.0

func NewServiceCmd() *cobra.Command

func NewServiceListCmd added in v0.6.0

func NewServiceListCmd() *cobra.Command

func NewStartCmd

func NewStartCmd() *cobra.Command

func NewStopCmd

func NewStopCmd() *cobra.Command

func NewTerminalCmd

func NewTerminalCmd() *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

func NewWorkspaceCmd

func NewWorkspaceCmd() *cobra.Command

func NewWorkspaceDashboardCmd added in v0.6.0

func NewWorkspaceDashboardCmd() *cobra.Command

func NewWorkspaceListCmd

func NewWorkspaceListCmd() *cobra.Command

func NewWorkspaceOpenCmd added in v0.9.0

func NewWorkspaceOpenCmd() *cobra.Command

func NewWorkspaceRemoveCmd

func NewWorkspaceRemoveCmd() *cobra.Command

func NewWorkspaceStartCmd

func NewWorkspaceStartCmd() *cobra.Command

func NewWorkspaceStopCmd

func NewWorkspaceStopCmd() *cobra.Command

func NewWorkspaceTerminalCmd

func NewWorkspaceTerminalCmd() *cobra.Command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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