cmd/cue: support explicit encodings in `exp writefs`
So that one can write a file with an encoding that isn't derived
from the filename extension, much like `@embed` supports a "type" flag.
Note that we don't use the field name "type" here,
as that is already used to distinguish regular files from symlinks.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I60ba9a0efade0fa62fb4354d5868d7e77baa796e
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1232054
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>