Add comments and docs link to generated arc.toml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-10 13:02:59 -04:00
parent 8cec8d6546
commit 20b446d1e5

View file

@ -26,8 +26,22 @@ pub async fn run_init() -> Result<()> {
}
// Create arc.toml
std::fs::write(&arc_toml, "version = 1\n\n[arc]\nroot = \"arc/\"\n")
.with_context(|| format!("failed to write {}", arc_toml.display()))?;
std::fs::write(
&arc_toml,
"\
# Arc project configuration
# https://docs.arc.computer/getting-started/quick-start
version = 1
[arc]
root = \"arc/\"
# Disable retrospective analysis after workflow runs:
# retro = false
",
)
.with_context(|| format!("failed to write {}", arc_toml.display()))?;
eprintln!("Created {}", arc_toml.display());
// Create hello workflow directory