Documentation
¶
Index ¶
- func AdaptExampleForAlias(example, originalCmd, aliasCmd string) string
- func NewDashboardCmd() *cobra.Command
- func NewInfoCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewRemoveCmd() *cobra.Command
- func NewRootCmd() *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 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 NewDashboardCmd ¶ added in v0.6.0
func NewInfoCmd ¶
func NewInitCmd ¶
func NewListCmd ¶
func NewRemoveCmd ¶
func NewRootCmd ¶
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 NewWorkspaceRemoveCmd ¶
func NewWorkspaceStartCmd ¶
func NewWorkspaceStopCmd ¶
func NewWorkspaceTerminalCmd ¶
Types ¶
This section is empty.
Source Files
¶
- autocomplete.go
- conversion.go
- dashboard.go
- helpers.go
- info.go
- init.go
- list.go
- remove.go
- root.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_remove.go
- workspace_start.go
- workspace_stop.go
- workspace_terminal.go
Click to show internal directories.
Click to hide internal directories.