#!/usr/bin/env node /** * xml-format CLI (G18 — pretty-print CLI command) * ─────────────────────────────────────────────────── * Formats XML files with configurable indentation. * Reuses the existing XmlParser + XmlSerializer pipeline. * * Usage * ───── * xml-format [file.xml ...] [options] * xml-format - # read from stdin * cat file.xml | xml-format # pipe * * Options * ─────── * --indent,-i Spaces per indent level (default: 2) * --no-declaration Omit the declaration * --no-self-close Emit instead of * --sort-attributes Sort attributes alphabetically * --output,-o Write output to file instead of stdout * --check Exit 0 if already formatted, 1 if not (no output) * --quiet,-q No output (only exit code) * --stdin Read from stdin * -h, --help Show this help * -v, --version Show version * * Exit codes * ────────── * 0 – success (or file already formatted in --check mode) * 1 – formatting changed the file (--check mode only) * 2 – usage / file error */ export declare function formatMain(): Promise; //# sourceMappingURL=format.d.ts.map