mirror of
https://github.com/charmbracelet/glow
synced 2024-09-28 20:23:45 +00:00
Simplify environment vars
This commit is contained in:
parent
f2537b1811
commit
5c8da55a5b
2
Makefile
2
Makefile
|
@ -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)
|
||||||
|
|
6
ui/ui.go
6
ui/ui.go
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue