Skip to content

gruft format

The format command will format all the files in the current project using the configuration found in the root gruft.toml.

Usage

shell
gruft format             # Format all files in the current directory.
gruft format dir/nested/ # Format all files in the specified directory recursively.
gruft format file1 file2 # Format specific files.

Options

  • --max-diagnostics: The maximum number of diagnostics to display. Default is 10.

Debug

  • --cpuprofile: Write a CPU profile to ./cpu.out.
  • --memprofile: Write a memory profile to ./mem.out.
  • --trace: Write an execution trace to ./trace.out.