Documentation ¶
Index ¶
- Constants
- func CheckAndExit(err error)
- func CheckErr(err error) bool
- func ColorFuncTemplate(tpl string) (*template.Template, error)
- func Converted2Rendered(r io.Reader, w io.Writer, prefix string)
- func Exit(message string, code int)
- func ParseCommand(cmd string) (string, []string)
- func PrintErr(err error)
- func PrintErrWithPrefix(prefix string, err error)
- func RenderedOutput(wr io.Writer, line ColorLine) error
- func RenderedTpl() *template.Template
- func Tmux() bool
- func TmuxAutomaticRename() bool
- func TmuxSetAutomaticRename(index string, autoRename bool)
- func TmuxSetWindowName(index, name string)
- func TmuxWindowInfo() (index, name string)
- type ColorLine
Constants ¶
View Source
const ( ColorRed = "red" ColorGreen = "green" ColorYellow = "yellow" ColorBlue = "blue" ColorMagenta = "magenta" ColorCyan = "cyan" ColorWhite = "white" )
Variables ¶
This section is empty.
Functions ¶
func CheckAndExit ¶
func CheckAndExit(err error)
func ParseCommand ¶
func PrintErrWithPrefix ¶
func RenderedTpl ¶
func TmuxAutomaticRename ¶
func TmuxAutomaticRename() bool
func TmuxSetAutomaticRename ¶
func TmuxSetWindowName ¶
func TmuxSetWindowName(index, name string)
func TmuxWindowInfo ¶
func TmuxWindowInfo() (index, name string)
Types ¶
Click to show internal directories.
Click to hide internal directories.