Skip to main content

Module setup_input

Module setup_input 

Source
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§

SetupInputAnswers
Answers loaded from a user-provided --setup-input file.
SetupQuestion
A single setup question definition.
SetupSpec
Represents a provider setup spec extracted from assets/setup.yaml.

Enums§

SetupVisibleIf
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 SetupSpec from assets/setup.yaml inside a .gtpack archive.
prompt_setup_answers
Interactively prompt the user for setup answers.