cmd/cue: add mod fix command
This wires up the `modfile.FixLegacy` function to a new
`cue mod fix` command.
Fixes #3137
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Idbb071493c4596feabf3b2c6c9ee8a53847d6127
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194780
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>