Skip to content

gwen format

Format source code using oxfmt.

Usage

bash
gwen format [options]

Options

OptionTypeDefaultDescription
--checkbooleanfalseCheck formatting without writing files
--pathstringsrcPath to format

Global Options

OptionAliasTypeDescription
--verbose-vbooleanShow detailed logs
--debugbooleanShow debug information

Examples

bash
# Format src/
gwen format

# Check only — no files written (useful for CI)
gwen format --check

# Format a specific directory
gwen format --path src/systems

Notes

  • --check exits with a non-zero code if any file would be changed. Use it in CI pipelines to enforce formatting.