| 12345678910111213141516171819202122232425262728 |
- package main
- const (
- Red = "\033[0;31m"
- Green = "\033[0;32m"
- Blue = "\033[0;34m"
- Yellow = "\033[0;33m"
- Purple = "\033[0;35m" // For elevated scripts
- NC = "\033[0m"
- )
- type Config struct {
- LogsDir string
- RunsDir string
- DryRun bool
- Verbose bool
- Interactive bool
- }
- type Script struct {
- Path string // Full filesystem path
- Name string // Just filename (e.g. "install.sh")
- RelPath string // Relative path from runs/ (e.g. "tools/install.sh")
- Desc string // Description from script comment
- RequiresSudo bool // Whether script needs elevated privileges
- }
- var config Config
|