yq compact sequence indentation flag
Introduced 2026-01-31 · score 0.90
HOW TO USE IT
When formatting YAML output, add `--yaml-compact-seq-indent` (or `-c`) to `yq` so `- ` is counted as part of the indentation.
yq --yaml-compact-seq-indent '<expression>' <file.yaml>WHY THIS HELPS
Format YAML output with compact sequence indentation when preparing repository data.
REQUIREMENTS AND LIMITATIONS
- Version: v4.52.1
- --yaml-compact-seq-indent / -c: Boolean flag; enables compact sequence indentation, where `- ` is considered part of the indentation.
FIRST-PARTY EVIDENCE
- https://github.com/mikefarah/yq/releases/tag/v4.52.1
- https://github.com/mikefarah/yq/blob/v4.52.1/cmd/root.go
Check the installed version and the source before using it. Entry JSON