Expand description
outrig config init – interactive writer for the global config.
Walks the user through providers, models, and default-model, then writes
a parseable + validated TOML file to the resolved global-config path. The
file refuses to clobber an existing one without --force. Atomic writes go
through tempfile::NamedTempFile::persist so an interrupted prompt never
leaves a half-written config behind.
run constructs real terminal I/O; run_with is the test seam that takes
an arbitrary PromptSource and target path.
Constants§
- DOC_
SYNC_ FIELDS - Slice of every
Fielddeclared in this module, forprompt_doc_sync.rs.
Functions§
- run
- Public entry: resolve the path, pick a
PromptSourceviaprompt::auto()(dialoguer on a TTY, line-based on piped stdin), and delegate torun_with.global_overrideplumbs the top-level--global-configflag into the same resolver [global_config_path] uses elsewhere. - run_
with - Drives the interactive flow against an arbitrary
PromptSource. The flow short-circuits on existing files whenforce == falseso an accidental re-run doesn’t burn through prompts before bailing.hfis the HuggingFace tree-listing client used to discover GGUF files for mistralrsmodel-idconfigs; tests pass a stub.