this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: test mod mirror with no arguments nor --mod

This is a no-op, so it should fail to not confuse the user,
but it currently succeeds immediately.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I1f2f88bb80994fb2608c15afdf3e13df188efabf
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211439
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>

+9
+9
cmd/cue/cmd/testdata/script/modmirror_modmode.txtar
··· 16 16 exec cue mod mirror --to $MEMREGISTRY2 --mod 17 17 cmp stdout $WORK/want-mirror2-stdout 18 18 19 + # No arguments without --mod should fail as a no-op. 20 + # TODO: currently these do nothing at all. 21 + exec cue mod mirror --to $MEMREGISTRY2 22 + ! stdout . 23 + ! stderr . 24 + exec cue mod mirror 25 + ! stdout . 26 + ! stderr . 27 + 19 28 -- want-mirror1-stdout -- 20 29 mirroring baz.org@v0.5.0 21 30 mirroring bar.com@v0.5.0