refactored render to internal/render added logging with charmbracelet/log

This commit is contained in:
steven carpenter 2025-07-22 03:39:21 -04:00
parent 109c54f1e5
commit 6f0b534d8d
20 changed files with 356 additions and 13 deletions

19
Output/config/config.go Normal file
View file

@ -0,0 +1,19 @@
package config
import (
"fmt"
"github.com/spf13/viper"
)
func Init() {
viper.SetConfigName("config") // config.yaml
viper.SetConfigType("yaml")
viper.AddConfigPath(".")
err := viper.ReadInConfig()
if err != nil {
fmt.Println("No config file found; using defaults.")
}
viper.SetDefault("app.theme", "dark")
}