cue mod fix

CUE v0.18.0

fix a legacy cue.mod/module.cue file

Usage

cue mod fix

Fix provides a way to migrate from a legacy module.cue file to the new standard syntax. It

- adds a language.version field - moves unrecognized fields into the custom.legacy field - adds a major version to the module path

If there is no module path, it chooses an arbitrary path (test.example@v0).

If the module.cue file is already compatible with the new syntax, it is just formatted without making any other changes.

Global flags

-E, --all-errors                   print all available errors
-C, --chdir string                 change working directory before running command (must be the first flag)
-i, --ignore                       proceed in the presence of errors
-s, --simplify                     simplify output
Install CUE