Documentation
¶
Index ¶
- Constants
- func AnyConfigFromFile(cfg interface{}, cfgFileName string, customPath string)
- func Cprinta(alignment string, fg csi.FgColor, bg csi.BgColor, termW int, str string) (n int, err error)
- func Cprintf(fg csi.FgColor, bg csi.BgColor, format string, a ...any) (n int, err error)
- func Cprintfa(alignment string, fg csi.FgColor, bg csi.BgColor, termW int, format string, ...) (n int, err error)
- func Csprinta(alignment string, fg csi.FgColor, bg csi.BgColor, termW int, str string) string
- func Csprintf(fg csi.FgColor, bg csi.BgColor, format string, a ...any) string
- func Csprintfa(alignment string, fg csi.FgColor, bg csi.BgColor, termW int, format string, ...) string
- func DrawUpper(comCfg ComConfig, header []string, termW int, title []string)
- func GenerateLower(cmdline string, cmdMode bool, comCfg ComConfig, fb *Feedback, ...) string
- func HandleKeyCmdline(key string, active *bool, cmdLine *CmdLine, cmdMap ScriptCmdMap, ...)
- func PrintAbout(appLicense, appLicenseUrl, appName, appNameFormal, appRepo, appVersion string)
- func PrintVersion(appName string, appVersion string)
- func SplitByLines(maxLineLen int, str string) []string
- func ValidateAlignment(alignment string)
- type CmdLine
- type ComAppData
- type ComConfig
- type Feedback
- type ScriptCmd
- type ScriptCmdMap
- type ScriptFn
- type ScriptFnMap
Constants ¶
View Source
const (
CmdlineMaxRows = 10
)
Variables ¶
This section is empty.
Functions ¶
func AnyConfigFromFile ¶
func GenerateLower ¶
func HandleKeyCmdline ¶
func PrintAbout ¶
func PrintAbout( appLicense, appLicenseUrl, appName, appNameFormal, appRepo, appVersion string, )
func PrintVersion ¶
func SplitByLines ¶
func ValidateAlignment ¶
func ValidateAlignment( alignment string, )
Types ¶
type CmdLine ¶
type CmdLine struct {
Active bool
Content string
Cursor int
Insert bool
RowIdx int
Rows [CmdlineMaxRows]string
}
func NewCmdLine ¶
func NewCmdLine() CmdLine
type ComAppData ¶
type ComAppData struct {
AcceptInput bool
Active bool
CmdLine CmdLine
ComCfg ComConfig
Fb Feedback
}
func NewComAppData ¶
func NewComAppData( customPath string, ) ComAppData
type ComConfig ¶
type ComConfig struct {
Pagers []pagerConfig
Keys keysConfig
Header headerConfig
Title titleConfig
CmdLine cmdlineConfig
Feedback feedbackConfig
}
func ComConfigFromFile ¶
type ScriptCmdMap ¶
type ScriptFnMap ¶
Click to show internal directories.
Click to hide internal directories.