Fmt
Fmt
The fmt command formats a Trilogy script file with proper syntax and consistent styling.
Arguments:
@argument("input", type=Path(exists=True))
Full Example
# Format a script file
trilogy fmt my_query.preql
# With debug output
trilogy --debug fmt my_query.preql
What It Does
- Parses the script and reformats it with consistent styling
- Overwrites the original file with the formatted version
- Displays formatting statistics including number of statements and duration
Notes
- The file must exist
- The original file is overwritten in place
