Skip to content
Myr

options.go

This file

Path

format/options.go

13 lines · 718 bytes · Go

Last changed by

ci: fix lintAndrey Neringbefore adoptionb0471e8

History of this file

Take it

1//nolint2package format34// Options is customization options for the format command.5type Options struct {6	Template []string `arg:"" optional:"" help:"Template string to format (can also be provided via stdin)"`7	Theme    string   `help:"Glamour theme to use for markdown formatting" default:"pink" env:"GUM_FORMAT_THEME"`8	Language string   `help:"Programming language to parse code" short:"l" default:"" env:"GUM_FORMAT_LANGUAGE"`910	StripANSI bool `help:"Strip ANSI sequences when reading from STDIN" default:"true" negatable:"" env:"GUM_FORMAT_STRIP_ANSI"`1112	Type string `help:"Format to use (markdown,template,code,emoji)" enum:"markdown,template,code,emoji" short:"t" default:"markdown" env:"GUM_FORMAT_TYPE"`13}