Simplify environment vars

This commit is contained in:
Christian Rocha 2020-09-08 11:03:32 -04:00 committed by Christian Muehlhaeuser
parent f2537b1811
commit 5c8da55a5b
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ glow:
go build go build
run: clean glow run: clean glow
GLOW_UI_LOGFILE=$(LOGFILE) ./glow GLOW_LOGFILE=$(LOGFILE) ./glow
log: log:
> $(LOGFILE) > $(LOGFILE)

View file

@ -39,9 +39,9 @@ type Config struct {
StashedOnly bool StashedOnly bool
// For debugging the UI // For debugging the UI
Logfile string `env:"GLOW_UI_LOGFILE"` Logfile string `env:"GLOW_LOGFILE"`
HighPerformancePager bool `env:"GLOW_UI_HIGH_PERFORMANCE_PAGER" default:"true"` HighPerformancePager bool `env:"GLOW_HIGH_PERFORMANCE_PAGER" default:"true"`
GlamourEnabled bool `env:"GLOW_UI_ENABLE_GLAMOUR" default:"true"` GlamourEnabled bool `env:"GLOW_ENABLE_GLAMOUR" default:"true"`
} }
// NewProgram returns a new Tea program. // NewProgram returns a new Tea program.