Documentation
¶
Overview ¶
Package cli implements the ogvs command-line interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLIConfig ¶
type CLIConfig struct {
Multipass bool `yaml:"multipass"`
FloatPrecision *int `yaml:"floatPrecision"`
// DataURI encodes the output as a data URI (base64/enc/unenc), and is
// overridden by --datauri. SVGO applies the encoding twice when it comes
// from a config file (once in optimize(), again in its CLI layer); OGVS
// encodes exactly once.
DataURI string `yaml:"datauri"`
Plugins []any `yaml:"plugins"` // string or map
Js2svg *Js2svgConfig `yaml:"js2svg"`
}
CLIConfig represents the YAML configuration file structure.
Click to show internal directories.
Click to hide internal directories.