config

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderVar

type BuilderVar struct {
	Name             string   `yaml:"name"`
	Description      string   `yaml:"description"`
	VarType          string   `yaml:"type"`
	ExampleValues    []string `yaml:"exampleValues"`
	IsPromptDisabled bool     `yaml:"disablePrompt"`
}

type BuilderVarDefault added in v0.0.23

type BuilderVarDefault struct {
	Name         string `yaml:"name"`
	Value        string `yaml:"value"`
	ReferenceVar string `yaml:"referenceVar"`
}

type DraftConfig

type DraftConfig struct {
	DisplayName      string              `yaml:"displayName"`
	NameOverrides    []FileNameOverride  `yaml:"nameOverrides"`
	Variables        []BuilderVar        `yaml:"variables"`
	VariableDefaults []BuilderVarDefault `yaml:"variableDefaults"`
	// contains filtered or unexported fields
}

TODO: remove Name Overrides since we don't need them anymore

func (*DraftConfig) GetNameOverride

func (d *DraftConfig) GetNameOverride(path string) string

func (*DraftConfig) GetVariableExampleValues added in v0.0.27

func (d *DraftConfig) GetVariableExampleValues() map[string][]string

type FileNameOverride

type FileNameOverride struct {
	Path   string `yaml:"path"`
	Prefix string `yaml:"prefix"`
}

type TemplateVariableRecorder added in v0.0.27

type TemplateVariableRecorder interface {
	Record(key, value string)
}

TemplateVariableRecorder is an interface for recording variables that are used read using draft configs

Jump to

Keyboard shortcuts

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