Documentation
¶
Overview ¶
Command iac-codemod is an AST-based migration tool for IaC plugin providers.
Modes:
refactor-plan — rewrite Plan() bodies to delegate to platform.ComputePlan
refactor-apply — rewrite Apply() bodies to delegate to wfctlhelpers.ApplyPlan
(with informative reports for non-canonical idioms)
add-validate-plan — inject a no-op ValidatePlan stub on providers missing it
lint — static checks (no rewrite); advisory-only mode
All modes default to dry-run. Pass -fix to opt into mutation.
All modes honor the `// wfctl:skip-iac-codemod` marker on functions and types; skipped sites are surfaced in each mode's report.
Click to show internal directories.
Click to hide internal directories.