Documentation
¶
Overview ¶
Package configgen renders a CircleCI pipeline YAML from a reposcan.Result and writes it to disk. It backs `circleci config generate` and is reusable by other commands (e.g. an onboarding wrapper) that already have a scan result in hand and want to write the config without re-scanning.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate writes a CircleCI pipeline config to <dir>/.circleci/config.yml from a pre-computed scan result. It marshals the pipeline YAML, creates the .circleci/ directory if missing, writes the file atomically (temp file + rename), and prints a "Generated <path>" line to stderr.
Callers are responsible for any preamble output and the "config already exists" short-circuit; Generate will overwrite an existing file.
Errors are returned as structured CLIErrors so the CLI's top-level handler can render them consistently.
func RenderWriteFailedPrompt ¶
RenderWriteFailedPrompt returns the POC prompt shown when writing the generated config to disk fails. The user is expected to paste this into an AI assistant to diagnose the filesystem-level cause.
Types ¶
This section is empty.