mirror of
https://github.com/charmbracelet/gum
synced 2024-06-12 10:42:18 +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.
|
// Options is customization options for the format command.
|
||||||
type Options struct {
|
type Options struct {
|
||||||
Template []string `arg:"" optional:"" help:"Template string to format (can also be provided via stdin)"`
|
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"`
|
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:""`
|
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