cmd/cue: ensure module is tidy before 'mod publish' publishes
Fixes a TODO in the code, and also ensures that the user
is presented with a helpful suggestion to run `cue mod tidy`
rather than being given a generic "module is not tidy" error message
from the central registry over HTTP.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I2bc3d6b8ceda38ea0ad4074121602082eb056921
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195731
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>