Documentation ¶
Index ¶
- func CobraInput(cmd *cobra.Command, flag string, hint string, value string, skip bool, ...) (string, error)
- func CobraInputBool(cmd *cobra.Command, flag string, hint string, value bool, skip bool) (bool, error)
- func Contacts(cmd *cobra.Command, args []string) ([]db.Contact, error)
- func Input(hint, value string) (string, error)
- func InputBool(hint string, value bool) (bool, error)
- func InputHidden(hint, value string) (string, error)
- func InputVisible(hint, value string) (string, error)
- func UfS(input string) (uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CobraInput ¶
func CobraInput(cmd *cobra.Command, flag string, hint string, value string, skip bool, hidden bool) (string, error)
CobraInput returns a string from a flag.
func CobraInputBool ¶
func CobraInputBool(cmd *cobra.Command, flag string, hint string, value bool, skip bool) (bool, error)
CobraInputBool returns a bool from a flag.
func InputHidden ¶
InputHidden provides a hint for a input, but does not show the user input.
func InputVisible ¶
InputVisible provides a hint for a input, and the user input is visible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.