diff options
| author | Himanshu Sardana <himanshusardana2005@gmail.com> | 2026-03-28 00:29:05 +0000 |
|---|---|---|
| committer | Himanshu Sardana <himanshusardana2005@gmail.com> | 2026-03-28 00:29:05 +0000 |
| commit | 98877caafbce3788df722292b39a6d98754b1c7e (patch) | |
| tree | d455373d2ed65a168cbef135040ca1cc513677d5 /cmd/build.go | |
| parent | 29f1dffc7c2cab345d39920ca84d248d8c2c4f99 (diff) | |
fix: read default theme from config file
Diffstat (limited to 'cmd/build.go')
| -rw-r--r-- | cmd/build.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/build.go b/cmd/build.go index 3877721..298a17b 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -6,11 +6,16 @@ import ( "os" "github.com/HimanshuSardana/kite/internal/build" + "github.com/HimanshuSardana/kite/pkg/config" ) func runBuild(args []string) { themeName := DefaultTheme + if cfg, err := config.Load("config.yaml"); err == nil && cfg.DefaultTheme != "" { + themeName = cfg.DefaultTheme + } + if len(args) > 2 { themeName = args[2] } |
