mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Simplify environment vars
This commit is contained in:
parent
f2537b1811
commit
5c8da55a5b
2 changed files with 4 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -13,7 +13,7 @@ glow:
|
|||
go build
|
||||
|
||||
run: clean glow
|
||||
GLOW_UI_LOGFILE=$(LOGFILE) ./glow
|
||||
GLOW_LOGFILE=$(LOGFILE) ./glow
|
||||
|
||||
log:
|
||||
> $(LOGFILE)
|
||||
|
|
6
ui/ui.go
6
ui/ui.go
|
@ -39,9 +39,9 @@ type Config struct {
|
|||
StashedOnly bool
|
||||
|
||||
// For debugging the UI
|
||||
Logfile string `env:"GLOW_UI_LOGFILE"`
|
||||
HighPerformancePager bool `env:"GLOW_UI_HIGH_PERFORMANCE_PAGER" default:"true"`
|
||||
GlamourEnabled bool `env:"GLOW_UI_ENABLE_GLAMOUR" default:"true"`
|
||||
Logfile string `env:"GLOW_LOGFILE"`
|
||||
HighPerformancePager bool `env:"GLOW_HIGH_PERFORMANCE_PAGER" default:"true"`
|
||||
GlamourEnabled bool `env:"GLOW_ENABLE_GLAMOUR" default:"true"`
|
||||
}
|
||||
|
||||
// NewProgram returns a new Tea program.
|
||||
|
|
Loading…
Reference in a new issue