Documentation ¶
Index ¶
- Variables
- func CheckDotDoko()
- func DisplayWidth(s string) int
- func Files()
- 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 SetDefaultSettings()
- func SettingsContent() string
- func SettingsFile() string
- func Truncate(maxWidth int, s string) string
- func TruncateColumn(maxWidth int, s string) string
- func UpdateSettings(ssu, sem bool)
- 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 CheckDotDoko ¶
func CheckDotDoko()
func DisplayWidth ¶
DisplayWidth calculates what the rendered width of a string may be
func IsUserCancellation ¶
func MutuallyExclusive ¶
func SetDefaultSettings ¶
func SetDefaultSettings()
func SettingsContent ¶
func SettingsContent() string
func SettingsFile ¶
func SettingsFile() string
func TruncateColumn ¶
TruncateColumn replaces the first new line character with an ellipsis and shortens a string to fit the maximum display width
func UpdateSettings ¶
func UpdateSettings(ssu, sem bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.