Skip to main content

Module cli_helpers

Module cli_helpers 

Source
Expand description

CLI helper functions for greentic-setup.

Structs§

EnvVarPlaceholder
Represents an environment variable placeholder found in answers.
SetupParams
Parameters collected from interactive prompts.

Enums§

SetupOutputTarget
Persistent output target for simple setup flows.

Functions§

apply_resolved_env_vars
Apply resolved environment variable values to loaded answers.
collect_env_var_placeholders
Collect all environment variable placeholders from loaded answers.
complete_loaded_answers_with_prompts
Complete loaded answers by prompting for missing values.
confirm_env_var_placeholders
Display environment variable placeholders and prompt for missing values.
copy_dir_recursive
Recursively copy a directory tree.
detect_domain_from_filename
Detect provider domain from .gtpack filename prefix.
ensure_deployment_targets_present
Ensure deployment targets are present if bundle has deployer packs.
prompt_setup_params
Prompt the user for setup parameters when no arguments are given.
resolve_bundle_dir
Resolve bundle directory from optional path argument.
resolve_bundle_source
Resolve bundle source - supports both directories and .gtbundle files.
resolve_pack_source
Resolve a pack source (local path or OCI reference) to a local file path.
resolve_setup_scope
Resolve tenant/team/env for setup.
resolve_setup_scope_with_bundle
Like resolve_setup_scope but also checks the bundle’s tenants/ directory for existing tenants when the CLI value is still the default.
run_interactive_wizard
Run interactive wizard for all discovered packs in the bundle.
setup_output_target
Decide whether simple setup should materialize a configured local bundle.