config

package
Version: v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 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 Config

type Config struct {
	Prompts []Prompt `yaml:"prompts"`
}

Config is a tmpl config

func Load

func Load(r io.Reader) (*Config, error)

Load loads a tmpl config

type Prompt

type Prompt struct {
	ID      string   `yaml:"id"`
	Label   string   `yaml:"label"`
	Help    string   `yaml:"help"`
	Default string   `yaml:"default"`
	Options []string `yaml:"options"`
}

Prompt is a tmpl prompt

Jump to

Keyboard shortcuts

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