feat: bundle Terebi Sunset as a selectable local theme

This commit is contained in:
hl-valdemar
2026-10-23 11:07:22 +02:00
parent 90cf08729e
commit 08135a407b
8 changed files with 176 additions and 12 deletions
+5
View File
@@ -192,6 +192,11 @@ func validatePair(pair currentPair, stderr io.Writer) error {
func validateTheme(theme string, stderr io.Writer) error {
cmd := exec.Command("tinty", "info", theme)
cmd.Stdout = io.Discard
if err := cmd.Run(); err == nil {
return nil
}
cmd = exec.Command("tinty", "info", theme, "--custom-schemes")
cmd.Stdout = io.Discard
cmd.Stderr = stderr
return cmd.Run()
}