Documentation
¶
Overview ¶
Package format allows you to render formatted text from the command line.
It supports the following types:
1. Markdown 2. Code 3. Emoji 4. Template
For more information, see the format/README.md file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
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" env:"GUM_FORMAT_THEME"`
Language string `help:"Programming language to parse code" short:"l" default:"" env:"GUM_FORMAT_LANGUAGE"`
StripANSI bool `help:"Strip ANSI sequences when reading from STDIN" default:"true" negatable:"" env:"GUM_FORMAT_STRIP_ANSI"`
Type string `` /* 138-byte string literal not displayed */
}
Options is customization options for the format command.
Click to show internal directories.
Click to hide internal directories.