config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args added in v0.0.8

type Args struct {
	// Common
	Width      float64 `yaml:"width"`
	Height     float64 `yaml:"height"`
	Size       float64 `yaml:"size"`
	Features   string  `yaml:"features"`
	Responsive bool    `yaml:"responsive"`

	// Only for grid
	Columns int `yaml:"columns"`
}

type Config

type Config struct {
	Dir  string `yaml:"dir"`
	Path string `yaml:"path"`

	Font   string `yaml:"font"`
	Output string `yaml:"output"`

	Defaults Args `yaml:"defaults"`

	Rules []Rule `yaml:"rules"`
}

func Read

func Read(p string) (Config, error)

func (*Config) PropagateDefaults added in v0.0.8

func (c *Config) PropagateDefaults()

func (Config) String added in v0.0.6

func (c Config) String() string

type Rule

type Rule struct {
	Type     string   `yaml:"type"`
	Features string   `yaml:"features"`
	Inputs   []string `yaml:"inputs"`
	Args     Args     `yaml:"args"`
}

func (*Rule) PropagateDefaults added in v0.0.8

func (r *Rule) PropagateDefaults(defaults Args)

Jump to

Keyboard shortcuts

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