build

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(dir string, path string) string

Resolve a path relative to a directory

Types

type BuildOp

type BuildOp struct {
	Base gotemplate.BaseConfig `name:"-"`

	ConfigFile string `name:"c" usage:"build config file"`
	InputDir   string `name:"i" usage:"input dir, overrides config input_dir"`
	OutputDir  string `name:"o" usage:"output dir, overrides config output_dir"`
	Verbose    bool   `name:"v" usage:"verbose, print template names"`
}

func (*BuildOp) Build

func (t *BuildOp) Build(args ...string) error

type Config

type Config struct {
	InputDir        string           `yaml:"input_dir"`
	OutputDir       string           `yaml:"output_dir"`
	InputExtension  string           `yaml:"input_ext"`
	OutputExtension string           `yaml:"output_ext"`
	Templates       []TemplateConfig `yaml:"templates"`
	Properties      map[string]any   `yaml:"properties"`
}

type TemplateConfig

type TemplateConfig struct {
	Dir      string   `yaml:"dir,omitempty"`
	Patterns []string `yaml:"patterns,omitempty"`
}

Jump to

Keyboard shortcuts

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