Documentation ¶
Index ¶
- Variables
- func CLIRequestFile(format string) string
- func CheckDotResto()
- func DisplayWidth(s string) int
- func Exec(shell, command string) (error, string, string)
- 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 RequestFile() string
- func SaveBuffer(b *editor.Buffer, path string) error
- func SetDefaultSettings()
- func SettingsContent() string
- func SettingsFile() string
- func Truncate(maxWidth int, s string) string
- func TruncateColumn(maxWidth int, s string) string
- func UpdateSettings(value 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 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 SetDefaultSettings ¶ added in v0.1.6
func SetDefaultSettings()
func SettingsContent ¶ added in v0.1.6
func SettingsContent() string
func SettingsFile ¶ added in v0.1.6
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 ¶ added in v0.1.6
func UpdateSettings(value bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.