@@ -10,12 +10,23 @@ export const ANALYSIS_COMMAND_DOCS: Record<string, CommandDoc> = {
1010 { flag : "--file <path>" , description : "Repo-local migration SQL file; repeat for multiple files" } ,
1111 { flag : "--rollback-file <path>" , description : "Repo-local rollback SQL file; repeat for multiple files" } ,
1212 { flag : "--target-kind <kind>" , description : "unspecified, disposable-local, remote-unapproved, or production-like" } ,
13+ { flag : "--connection-url <url>" , description : "Optional DB URL used only for host classification; secret values are redacted" } ,
14+ { flag : "--connection-host <host>" , description : "Optional DB host used for target classification" } ,
15+ { flag : "--database-url-env <NAME>" , description : "Env var name holding credentials; values are never read" } ,
16+ { flag : "--cleanup-plan <text>" , description : "Disposable database cleanup plan recorded in the report" } ,
17+ { flag : "--rollback-failed" , description : "Mark rollback as failed so the verdict stays not fully verified" } ,
1318 { flag : "--cwd <path>" , description : "Repository working directory (default: current directory)" } ,
1419 { flag : "--format <format>" , description : "json or markdown (default: markdown)" } ,
1520 { flag : "--output <path>" , description : "Write the plan to a file instead of stdout" }
1621 ] ,
17- examples : [ "codedecay migration --file prisma/migrations/20260802_change/migration.sql --target-kind disposable-local" , "codedecay migration --file migration.sql --target-kind production-like --format json" ] ,
18- notes : [ "This command is plan-only: it reads no database secret, contacts no database, and applies no migration." ]
22+ examples : [
23+ "codedecay migration --file prisma/migrations/20260802_change/migration.sql --target-kind disposable-local" ,
24+ "codedecay migration --file migration.sql --connection-host localhost --cleanup-plan \"drop docker volume codedecay-mig\" --format json"
25+ ] ,
26+ notes : [
27+ "This command is plan-only: it reads no database secret, contacts no database, and applies no migration." ,
28+ "See docs/migration.md for what plan-ready vs fully-verified means."
29+ ]
1930 } ,
2031 runtime : {
2132 name : "runtime" ,
0 commit comments