Expand description
Load and validate user-provided setup answers from JSON/YAML files.
Supports both per-provider keyed answers (where the top-level JSON object maps provider IDs to their answers) and flat single-provider answers.
Structs§
- Setup
Input Answers - Answers loaded from a user-provided
--setup-inputfile. - Setup
Question - A single setup question definition.
- Setup
Spec - Represents a provider setup spec extracted from
assets/setup.yaml.
Enums§
- Setup
Visible If - Conditional visibility for a setup question.
Functions§
- collect_
setup_ answers - Collect setup answers for a provider pack.
- ensure_
object - Ensure a JSON value is an object.
- ensure_
required_ answers - Validate that all required answers are present.
- load_
setup_ input - Reads a JSON/YAML answers file.
- load_
setup_ spec - Load a
SetupSpecfromassets/setup.yamlinside a.gtpackarchive. - prompt_
setup_ answers - Interactively prompt the user for setup answers.