iac-codemod

command
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL