ubx fmt formats .iac files in place using the canonical ubx style. Similar to terraform fmt or gofmt.
Usage
Examples
Flags
| Flag | Description |
|---|---|
--dry-run | Show diff without writing files |
--check | Exit 1 if any files need formatting |
Formatting Rules
- Consistent 2-space indentation
- Aligned
=signs within a block - Single blank line between blocks
- Sorted attribute keys (alphabetically within each block)
- Canonical quoting (double quotes for strings)
Example
Before:ubx fmt:
CI Usage
.ubxignore Respected
Files excluded via .ubxignore are not formatted.