refactored render to internal/render added logging with charmbracelet/log
This commit is contained in:
parent
109c54f1e5
commit
6f0b534d8d
20 changed files with 356 additions and 13 deletions
19
Output/config/config.go
Normal file
19
Output/config/config.go
Normal 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")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue