Skip to main content

Module setup_cli

Module setup_cli 

Source
Expand description

The bamboo init / doctor / config set onboarding CLI: configure a provider + API key and self-diagnose without the web UI (server-less). bamboo init / bamboo doctor / bamboo config set — first-run onboarding.

These are local, server-less commands: they read and write config.json under the data dir directly (via bamboo_config::Config), so a fresh install can configure a provider + API key and self-diagnose without the web UI or hand-editing JSON. Writes go through Config::save_to_dir, which encrypts provider keys at rest and writes atomically (with a rotating .bak).

Structs§

InitArgs
Arguments for run_init, mirrored from the bamboo init clap variant.

Functions§

run_config_set
bamboo config set <key> <value> — write a single config value.
run_doctor
bamboo doctor — diagnose the local install. Returns Ok(true) when healthy, Ok(false) when a blocking problem was found (caller should exit non-zero).
run_init
bamboo init — scaffold/populate config.json with a provider + API key.