Documentation ¶
Index ¶
- func AskForConfirmation() bool
- func Date(dt time.Time) string
- func HandleError(err error)
- func ListContainsSubstr(s []string, e string) bool
- func Pretty(obj interface{})
- func ReadInput(file string) ([]byte, error)
- func ReadStdIn() ([]byte, error)
- func ResolveFormat(cmd *cobra.Command) string
- func SortOutputList(output [][]string, headerName string) [][]string
- func Tmpl(w io.Writer, text string, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForConfirmation ¶
func AskForConfirmation() bool
func HandleError ¶
func HandleError(err error)
func ListContainsSubstr ¶
func ReadInput ¶
ReadInput attempts to read a file from the location given, or if a location is not given, then it will attempt to read from stdin instead.
func ResolveFormat ¶
func SortOutputList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.