cmd/cue: add testscript showing input unmarshal behavior with `cue cmd`
Given that we currently support defining `cue cmd` tasks by simply
inserting `kind` or `$id` string fields, without referencing
imported tool/... packages, it is possible for input data
unmarshalled into a regular field to become a runnable task.
This testscript shows the current behavior in a variety of these
edge cases, including a hidden `_id` field which we will soon
start using as well.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I7b8d5002b7d98d821702d7eb52c23e3f5c3f61ca
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214985
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>