cmd/cue: test `cue` and `cue cmd` via testscript
Some of the logic in newCmdCmd wasn't covered by our tests yet.
Do that, verifying that the behavior is still correct.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ifdbd7f52a2a36b8527f41b013ac6494b4eda526a
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1191110
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>