Documentation
¶
Index ¶
- func AdaptExampleForAlias(example, originalCmd, aliasCmd string) string
- func NewInfoCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewRemoveCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewStartCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- func NewTerminalCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func NewWorkspaceCmd() *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 NewInfoCmd ¶
func NewInitCmd ¶
func NewListCmd ¶
func NewRemoveCmd ¶
func NewRootCmd ¶
func NewStartCmd ¶
func NewStopCmd ¶
func NewTerminalCmd ¶
func NewVersionCmd ¶
func NewWorkspaceCmd ¶
func NewWorkspaceListCmd ¶
func NewWorkspaceRemoveCmd ¶
func NewWorkspaceStartCmd ¶
func NewWorkspaceStopCmd ¶
func NewWorkspaceTerminalCmd ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.