Documentation
¶
Index ¶
- func DrawConsole(config Config, fileName string, userName string, hostName string, dir string, ...)
- func Exec() (string, string)
- func FileName(config Config, content string) string
- func LoadFontFace(fontBytes []byte, points float64) (font.Face, error)
- func ShellLine(userName string, hostName string, dir string) string
- func WriteFile(config Config, fileName string, content string)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawConsole ¶
Types ¶
type Config ¶
type Config struct {
UserName string `yaml:"userName", envconfig:"MARAUDER_USER_NAME"`
HostName string `yaml:"hostName", envconfig:"MARAUDER_HOST_NAME"`
OutDir string `yaml:"outDir", envconfig:"MARAUDER_OUT_DIR"`
Dir string
Colors struct {
Button1 string `yaml:"button1" envconfig:"MARAUDER_COLOR_BUTTON1"`
Button2 string `yaml:"button2" envconfig:"MARAUDER_COLOR_BUTTON2"`
Button3 string `yaml:"button3" envconfig:"MARAUDER_COLOR_BUTTON3"`
Background string `yaml:"background" envconfig:"MARAUDER_COLOR_BACKGROUND"`
Title string `yaml:"title" envconfig:"MARAUDER_COLOR_TITLE"`
UserName string `yaml:"userName" envconfig:"MARAUDER_COLOR_USERNAME"`
At string `yaml:"at" envconfig:"MARAUDER_COLOR_AT"`
HostName string `yaml:"hostName" envconfig:"MARAUDER_COLOR_HOSTNAME"`
Dollar string `yaml:"dollar" envconfig:"MARAUDER_COLOR_DOLLAR"`
Command string `yaml:"command" envconfig:"MARAUDER_COLOR_COMMAND"`
Terminal string `yaml:"terminal" envconfig:"MARAUDER_COLOR_TERMINAL"`
} `yaml:"colors"`
DatePrefix bool `yaml:"datePrefix", envconfig:"MARAUDER_DATE_PREFIX"`
LineLimit uint16 `yaml:"lineLimit", envconfig:"MARAUDER_LINE_LIMIT"`
FontSize float64 `yaml:"fontSize", envconfig:"MARAUDER_FONT_SIZE"`
TerminalMargin float64 `yaml:"terminalMargin", envconfig:"MARAUDER_MARGIN"`
TextMargin float64 `yaml:"textMargin", envconfig:"MARAUDER_MARGIN"`
}
Click to show internal directories.
Click to hide internal directories.