Documentation
¶
Index ¶
- Variables
- func BoxState(state string) (color string)
- func CheckDiff(difficulty string) (color string)
- func CheckOS(BoxOS string) (color string)
- func HTBTheme() *huh.Theme
- func HelpTask(task Task, args any) tea.Cmd
- func InitialLoadingModel(task Task, args any) loading
- func LoadImage(url string) (out string)
- func NextColor() lipgloss.Color
- func RunLoading(task Task, args any) (err error)
- func Sanitize(inputStr string) string
- func SplitResp() (resp string)
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // based on https://github.com/silofy/hackthebox/tree/master // Base background color BaseBG = lipgloss.Color("#141D2B") // Primary palette Purple = lipgloss.Color("#A4B1CD") Red = lipgloss.Color("#FF8484") Cyan = lipgloss.Color("#5CECC6") Pink = lipgloss.Color("#FFB3DE") // replaced Yellow = lipgloss.Color("#FFCC5C") LightBlue = lipgloss.Color("#C5D1EB") Blue = lipgloss.Color("#5CB2FF") LightGreen = lipgloss.Color("#C5F467") DarkPurple = lipgloss.Color("#A000FF") // Optional: Text color for dark backgrounds (use primary palette for accents) TextDefault = Purple TextRed = Red TextCyan = Cyan TextPink = Pink TextYellow = Yellow TextLightBlue = LightBlue TextBlue = Blue TextLightGreen = LightGreen TextTitle = LightGreen TextPurple = DarkPurple )
View Source
var ColorIndex = 0
View Source
var ColorsBrightToDark = []lipgloss.Color{ Yellow, LightGreen, Cyan, LightBlue, Pink, Blue, Red, Purple, DarkPurple, }
View Source
var TaskResult any
Functions ¶
func InitialLoadingModel ¶
func RunLoading ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.