You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/cue: improve stdin input handling in cue fmt --check
I was playing around with the `gofmt` command, and noticed that
it adds an indication in standard input when the -l flag is used:
$ cat some_file.go | gofmt -l
<standard input>
The current `cue fmt --check` implementation intentionally avoids
displaying such output, but I think this is less intuitive as if
a user runs `cue fmt --check -`, the empty output can be confusing.
This change modifies `cue fmt --check` to write `-` in case `-`
was specified as an argument.
Signed-off-by: Noam Dolovich <[email protected]>
Change-Id: I4cb9e1e75a5f2bfc12c723cc909268315151e552
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193777
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
0 commit comments