cue/load: implement SkipImports mode
This flag specifies that no imports or dependencies should
be loaded. We use that flag in `cue fmt` to avoid awkward
checks about errors. It also avoids `cue fmt` doing lots
of redundant work only to discard the results.
Fixes #3329
Fixes #728
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I5a2c82809e594b06fdd4ea2eedd2d417f1c17572
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198555
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>