cmd/cue: drop support for the deprecated short form of `cue cmd`
`cue foo` used to be a shortcut for `cue cmd foo`,
but was deprecated in v0.9.0 following https://cuelang.org/issue/2519.
The shortcut introduced a number of problems:
* The root `cue` command needed to be significantly more complex;
it had to know how to correctly capture flags and arguments for
`cue cmd` and pass them along to the subcommand.
* Spelling mistakes like `cue evla` instead of `cue eval` could easily
result in running arbitrary code if _tool.cue files existed.
* In some edge cases we would have to load _tool.cue files outside of
`cue cmd` to make sure the user wasn't trying to use a tool command.
This also caused confusing error messages, such as the `cue evla` typo
resulting in a suggestion to declare the command in a _tool.cue file.
The issues above existed so the user could save typing four characters,
which doesn't seem worth it. We now only support `cue cmd foo`,
which is more explicit and consistent.
One test case which covered running a command in "short" code now fails.
Two others which only tested fixed bugs in the short form are deleted,
as those edge cases are completely gone now.
Fixes #2519.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I1d80622f6db3fd0f0fb7494356e5360697b048be
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199634
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>