cli

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package cli implements the ogvs command-line interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command.

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.

type Js2svgConfig

type Js2svgConfig struct {
	Pretty       bool   `yaml:"pretty"`
	Indent       int    `yaml:"indent"`
	EOL          string `yaml:"eol"`
	FinalNewline bool   `yaml:"finalNewline"`
}

Js2svgConfig represents js2svg output configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL