types.go 643 B

12345678910111213141516171819202122232425262728
  1. package main
  2. const (
  3. Red = "\033[0;31m"
  4. Green = "\033[0;32m"
  5. Blue = "\033[0;34m"
  6. Yellow = "\033[0;33m"
  7. Purple = "\033[0;35m" // For elevated scripts
  8. NC = "\033[0m"
  9. )
  10. type Config struct {
  11. LogsDir string
  12. RunsDir string
  13. DryRun bool
  14. Verbose bool
  15. Interactive bool
  16. }
  17. type Script struct {
  18. Path string // Full filesystem path
  19. Name string // Just filename (e.g. "install.sh")
  20. RelPath string // Relative path from runs/ (e.g. "tools/install.sh")
  21. Desc string // Description from script comment
  22. RequiresSudo bool // Whether script needs elevated privileges
  23. }
  24. var config Config