Documentation
¶
Index ¶
- func AdaptExampleForAlias(example, originalCmd, aliasCmd string) string
- func NewAutoconfCmd() *cobra.Command
- func NewDashboardCmd() *cobra.Command
- func NewInfoCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewOpenCmd() *cobra.Command
- func NewRemoveCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRuntimeCmd() *cobra.Command
- func NewRuntimeListCmd() *cobra.Command
- func NewSecretCmd() *cobra.Command
- func NewSecretCreateCmd() *cobra.Command
- func NewSecretListCmd() *cobra.Command
- func NewSecretRemoveCmd() *cobra.Command
- func NewServiceCmd() *cobra.Command
- func NewServiceListCmd() *cobra.Command
- func NewStartCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- func NewTerminalCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func NewWorkspaceCmd() *cobra.Command
- func NewWorkspaceDashboardCmd() *cobra.Command
- func NewWorkspaceListCmd() *cobra.Command
- func NewWorkspaceOpenCmd() *cobra.Command
- func NewWorkspaceRemoveCmd() *cobra.Command
- func NewWorkspaceStartCmd() *cobra.Command
- func NewWorkspaceStopCmd() *cobra.Command
- func NewWorkspaceTerminalCmd() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptExampleForAlias ¶
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
NewAutoconfCmd returns the autoconf command.
func NewDashboardCmd ¶ added in v0.6.0
func NewInfoCmd ¶
func NewInitCmd ¶
func NewListCmd ¶
func NewOpenCmd ¶ added in v0.9.0
func NewRemoveCmd ¶
func NewRootCmd ¶
func NewRuntimeCmd ¶ added in v0.11.0
func NewRuntimeListCmd ¶ added in v0.11.0
func NewSecretCmd ¶ added in v0.6.0
func NewSecretCreateCmd ¶ added in v0.6.0
func NewSecretListCmd ¶ added in v0.6.0
func NewSecretRemoveCmd ¶ added in v0.6.0
func NewServiceCmd ¶ added in v0.6.0
func NewServiceListCmd ¶ added in v0.6.0
func NewStartCmd ¶
func NewStopCmd ¶
func NewTerminalCmd ¶
func NewVersionCmd ¶
func NewWorkspaceCmd ¶
func NewWorkspaceDashboardCmd ¶ added in v0.6.0
func NewWorkspaceListCmd ¶
func NewWorkspaceOpenCmd ¶ added in v0.9.0
func NewWorkspaceRemoveCmd ¶
func NewWorkspaceStartCmd ¶
func NewWorkspaceStopCmd ¶
func NewWorkspaceTerminalCmd ¶
Types ¶
This section is empty.
Source Files
¶
- autocomplete.go
- autoconf.go
- conversion.go
- dashboard.go
- helpers.go
- info.go
- init.go
- list.go
- open.go
- remove.go
- root.go
- runtime.go
- runtime_list.go
- secret.go
- secret_create.go
- secret_list.go
- secret_remove.go
- service.go
- service_list.go
- start.go
- stop.go
- terminal.go
- version.go
- workspace.go
- workspace_dashboard.go
- workspace_list.go
- workspace_open.go
- workspace_remove.go
- workspace_start.go
- workspace_stop.go
- workspace_terminal.go
Click to show internal directories.
Click to hide internal directories.