Documentation
¶
Index ¶
- Variables
- func CLIRequestFile(format string) string
- func CheckDotResto()
- func DisplayWidth(s string) int
- func Exec(shell, command string) (error, string, string)
- func Indent(s, indent string) string
- func IsUserCancellation(err error) bool
- func MutuallyExclusive(message string, conditions ...bool) error
- func PrintError(out io.Writer, err error, cmd *cobra.Command, debug bool)
- func ReplaceExcessiveWhitespace(s string) string
- func RequestFile() string
- func SaveBuffer(b *editor.Buffer, path string) error
- func Truncate(maxWidth int, s string) string
- func TruncateColumn(maxWidth int, s string) string
- type FlagError
Constants ¶
This section is empty.
Variables ¶
View Source
var CancelError = errors.New("CancelError")
CancelError signals user-initiated cancellation
View Source
var SilentError = errors.New("SilentError")
SilentError is an error that triggers exit code 1 without any error messaging
Functions ¶
func CLIRequestFile ¶
func CheckDotResto ¶
func CheckDotResto()
func DisplayWidth ¶
DisplayWidth calculates what the rendered width of a string may be
func IsUserCancellation ¶
func MutuallyExclusive ¶
func RequestFile ¶
func RequestFile() string
func TruncateColumn ¶
TruncateColumn replaces the first new line character with an ellipsis and shortens a string to fit the maximum display width
Types ¶
Click to show internal directories.
Click to hide internal directories.