Skip to main content

Synopsis

The fmt command rewrites CUE files in the standard format. Arguments are files or directories, defaulting to the current directory. Directories are formatted recursively; during the walk, directories named “cue.mod” and those with a ”.” or ”_” prefix are skipped unless given as explicit arguments. Files inside a module are parsed under the language version declared in the module’s cue.mod/module.cue, matching the behavior of Timoni’s module builds; files outside any module use the CUE version built into Timoni. When run with --diff, no files are rewritten, the pending changes are printed as unified diffs and the command fails if any file is not well formatted.

Examples

Options

Options inherited from parent commands

See also

  • timoni - A package manager for Kubernetes powered by CUE.