Skip to content

Commit

Permalink
feat(format): add GUM_FORMAT_THEME / GUM_FORMAT_LANGUAGE environment …
Browse files Browse the repository at this point in the history
…variable configuration
  • Loading branch information
maaslalani committed May 12, 2023
1 parent 92c890e commit c668e15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions format/options.go
Expand Up @@ -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"`
}

0 comments on commit c668e15

Please sign in to comment.