blob: 2011a6e808bff68fb7bcace57f3486252a921d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[short] skip
# list -json should generate output on stdout
go list -json ./...
stdout .
# list -f should generate output on stdout
go list -f '{{.}}' ./...
stdout .
# test passing first -json then -f
! go list -json -f '{{.}}' ./...
stderr '^go list -f cannot be used with -json$'
# test passing first -f then -json
! go list -f '{{.}}' -json ./...
stderr '^go list -f cannot be used with -json$'
-- go.mod --
module m
-- list_test.go --
package list_test
|