Text file src/cmd/go/testdata/script/list_json_with_f.txt

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

View as plain text