mirror of
https://github.com/charmbracelet/gum
synced 2024-05-08 17:26:36 +02:00
feat(format): add GUM_FORMAT_THEME / GUM_FORMAT_LANGUAGE environment variable configuration
This commit is contained in:
parent
92c890e717
commit
c668e153e6
|
@ -3,8 +3,8 @@ package format
|
|||
// Options is customization options for the format command.
|
||||
type Options struct {
|
||||
Template []string `arg:"" optional:"" help:"Template string to format (can also be provided via stdin)"`
|
||||
Theme string `help:"Glamour theme to use for markdown formatting" default:"pink"`
|
||||
Language string `help:"Programming language to parse code" short:"l" default:""`
|
||||
Theme string `help:"Glamour theme to use for markdown formatting" default:"pink" env:"GUM_FORMAT_THEME"`
|
||||
Language string `help:"Programming language to parse code" short:"l" default:"" env:"GUM_FORMAT_LANGUAGE"`
|
||||
|
||||
Type string `help:"Format to use (markdown,template,code,emoji)" enum:"markdown,template,code,emoji" short:"t" default:"markdown"`
|
||||
Type string `help:"Format to use (markdown,template,code,emoji)" enum:"markdown,template,code,emoji" short:"t" default:"markdown" env:"GUM_FORMAT_TYPE"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue