cmd/cue: add a testscript running commands inside cue.mod
Test running cue commands inside the cue.mod directory,
as well as interacting with packages and files inside of it.
CUE files "inside a module" should be in a directory tree that contains
a cue.mod directory, but not actually inside the cue.mod directory.
However, it's easy for new users to think otherwise and drop CUE code
inside the cue.mod directory somewhere, leading to confusing results.
This commit does not change any behavior; we simply reflect
the current behavior via a test.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I943f8b29e2bceb7a480b0b2c11d9cb6772bb4ffa
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1229768
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>