Skip to main content

Module add

Module add 

Source
Expand description

outrig image add – interactive scaffolding of a new image-config.

Walks the user through name, base image, toolchains, and MCP servers, then writes .agents/outrig/images/<name>/Dockerfile and appends matching [images.<name>] and [images.<name>.mcp] blocks to the repo config.toml. The TOML mutation goes through toml_edit so any surrounding comments and formatting survive.

run constructs real terminal I/O; run_with is the test seam that takes an arbitrary PromptSource.

Constants§

DOC_SYNC_FIELDS
Slice of every Field declared in this module, for prompt_doc_sync.rs.

Functions§

run
CLI entry point. Resolves the repo root from cwd (walking up, with a fallback prompt to bootstrap a fresh .agents/outrig/config.toml if none is found) before running the interactive image-add flow. One PromptSource is threaded through both halves so the user sees a single conversation. global_override plumbs --global-config into the bootstrap path so the model-section can list models from the right global config.
run_with
Drives the interactive flow against an arbitrary PromptSource.