Documentation
¶
Index ¶
- func AliasCommand(command string) func(cmd *cobra.Command, args []string)
- func AliasCommandArgpos(command string, argpos ...int) func(cmd *cobra.Command, args []string)
- func AskString(prompt string, hidden bool) string
- func FindContext(cmd *cobra.Command) context.Context
- func GetStringFlag(cmd *cobra.Command, name string, defaultValue string) string
- func RunBash(command string, args ...any)
- func RunBashReturn(command string, args ...any) ([]byte, error)
- func StringSliceToAnySlice(args []string) []any
- func SudoIfNotRoot(command string) string
- type CommandGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AliasCommandArgpos ¶
func GetStringFlag ¶
func StringSliceToAnySlice ¶
func SudoIfNotRoot ¶
Types ¶
type CommandGroup ¶
func (*CommandGroup) Register ¶
func (c *CommandGroup) Register(root *cobra.Command)
func (*CommandGroup) RegisterChildren ¶
func (c *CommandGroup) RegisterChildren()
Click to show internal directories.
Click to hide internal directories.