dpg fmt
dpg fmt
Format .dpg source files in place
Synopsis
Reformat .dpg source files to the canonical DPG style.
Without arguments, all .dpg files in the current project are formatted. With –check, exits 1 if any file would change (no files are written). With –diff, prints a unified diff of proposed changes (no files are written). With –stdin, reads source from stdin and writes formatted output to stdout (used by editor integrations such as Helix that pipe file content).
dpg fmt [files or dirs...] [flags]
Options
--check exit 1 if any file would change (no files written)
--diff print unified diff of changes (no files written)
-h, --help help for fmt
--stdin read from stdin, write formatted output to stdout
Options inherited from parent commands
-C, --dir string project root directory (default: current working directory)
--env string path to .env file (default: .env in project root, if present)
SEE ALSO
- dpg - Declarative PG — schema compiler and migration tool