Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Styles PRIMARY_COLOR = lipgloss.Color("#1E90FF") CYAN_COLOR = lipgloss.Color("#00FFFF") GREEN_COLOR = "#04B575" RED_COLOR = "#FF4141" GRAY_COLOR = lipgloss.AdaptiveColor{Light: "#9B9B9B", Dark: "#5C5C5C"} BOLD = lipgloss.NewStyle().Bold(true) SUCCESS_BACKGROUND = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("#FFF")). Background(lipgloss.Color(GREEN_COLOR)). PaddingLeft(1). PaddingRight(1) FAIL_BACKGROUND = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("#FFF")). Background(lipgloss.Color(RED_COLOR)). PaddingLeft(1). PaddingRight(1) INFO_BACKGROUND = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("#FFF")). Background(lipgloss.Color(CYAN_COLOR)). PaddingLeft(1). PaddingRight(1) SUCCESS_FOREGROUND = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(GREEN_COLOR)) FAIL_FOREGROUND = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(RED_COLOR)) INFO_FOREGROUND = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(CYAN_COLOR)) COMMAND_FOREGROUND = lipgloss.NewStyle().Bold(true).Foreground(GRAY_COLOR) // File Paths HomeDir, _ = dfs.GetHomeDirectory() BotwayConfigFile = filepath.Join(HomeDir, ".botway", "botway.json") BotwayConfig, Berr = ioutil.ReadFile(BotwayConfigFile) BotConfig, Oerr = ioutil.ReadFile(".botway.yaml") DeployConfig, Derr = ioutil.ReadFile("deploy.hcl") Guilds, Gerr = ioutil.ReadFile(filepath.Join("config", "guilds.json")) BotwayDirPath = func() string { if runtime.GOOS == "windows" { return `$HOME\\.botway` } else { return `$HOME/.botway` } } RAIL_PORT = 4411 )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.