cmd/cue: suggest `cue mod tidy` when --check says "not tidy"
When a user runs `cue mod tidy --check` and it says "not tidy",
it might not be obvious that they should run `cue mod tidy`.
This is particularly important for the central registry,
which enforces that published modules are tidy via --check:
cue mod publish v0.0.8 cannot put module: [...]: module is not tidy
The central registry should suggest the user what to do to resolve
the issue, and in the majority of cases, it's to run 'cue mod tidy'.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ia81aa1244d1b1402cb5a3329f1d3c459ef1d14c6
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195700
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.io>