oxo-flow format#
Reformat a .oxoflow file into canonical TOML form.
Usage#
Arguments#
| Argument | Description |
|---|---|
<WORKFLOW> |
Path to the .oxoflow workflow file |
Options#
| Option | Short | Default | Description |
|---|---|---|---|
--output |
-o |
stdout | Write formatted output to a file |
--check |
— | — | Check if the file is already formatted (exit non-zero if not) |
--verbose |
-v |
— | Enable verbose (debug-level) logging |
--quiet |
— | — | Suppress non-essential output (errors only) |
--no-color |
— | — | Disable colored output |
The global
--jsonflag is not supported by this command — passing it fails fast instead of being silently ignored. Machine-readable output is available from:run,dry-run,validate,lint,test,status,batch,info,schema,license,ai, andprovenance verify.
Examples#
Format and print to stdout#
Save formatted output to a new file#
Check formatting in CI#
Output#
[[rules]]
name = "step1"
input = ["input.txt"]
output = ["output.txt"]
shell = "cat input.txt > output.txt"
[workflow]
name = "my-pipeline"
version = "0.1.0"
Notes#
- The formatter ensures consistent indentation and key ordering: map-backed
sections (
[config],[metadata], includeparams, …) are emitted with keys in sorted order, so the same file always formats to the same bytes — the property--checkrelies on - Internal parse state is never emitted: declarative
[config]entries (key = { default = …, … }) roundtrip as themselves, not as a[config_meta]section - Using
--checkis recommended for CI/CD pipelines to enforce style consistency - The file is re-serialized from the parsed configuration, so comments are not preserved