Help us shape the future of Go! Take the 2026 Go Developer Survey

envbuilder

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(root string, maxDepth int) ([]string, error)

Types

type ParsedYaml

type ParsedYaml map[string][]UserPrompt

type PromptOption

type PromptOption struct {
	Blank    bool
	Checked  bool
	Name     string `yaml:"name"`
	Value    string `yaml:"value,omitempty"`
	Requires string `yaml:"requires,omitempty"`
}

type UserPrompt

type UserPrompt struct {
	Section  string
	Env      string         `yaml:"env"`
	Key      string         `yaml:"key"`
	Type     string         `yaml:"type"`
	Multiple bool           `yaml:"multiple"`
	Options  []PromptOption `yaml:"options,omitempty"`
	Default  any            `yaml:"default,omitempty"`
	Help     string         `yaml:"help"`
	Optional bool           `yaml:"optional,omitempty"`
}

func GatherUserPrompts

func GatherUserPrompts(rootDir string) ([]UserPrompt, []string, error)

Jump to

Keyboard shortcuts

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