cmd/cue: add mod edit command
This command allows some automatic editing of the module.cue file.
The design is patterned after the `go mod edit` command.
For #3017.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Ia46be7fa6cdfd84aff131f2196e052268cdc3b03
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193116
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>