cmd/cue: make mod resolve work with no args
When there are no arguments, `cue mod resolve` should
provide information about the current module. Currently
it does nothing in this case.
Also treat "." as a special case, so `cue mod resolve`
is equivalent to `cue mod resolve .` much as `cue eval` is
equivalent to `cue eval .`.
Fixes #3195.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9dc0f59f25392f0d45ffc8f7cb56824eb69d3a46
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197185
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>