internal/scan: allow -show for binary mode

Needed if you want binary scans in color for instance.
Also, for query mode, just inist on -json, which will itself insist on no -show

Change-Id: I472f0d52a0367b69cab469cd832a1317d76eddf5
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/499459
Run-TryBot: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Cottrell <iancottrell@google.com>
2 files changed
tree: e82b27a332f16c9fda5e8ada1bde7754f6854f0c
  1. cmd/
  2. devtools/
  3. doc/
  4. internal/
  5. scan/
  6. .gitignore
  7. all_test.go
  8. checks.bash
  9. CONTRIBUTING.md
  10. go.mod
  11. go.sum
  12. LICENSE
  13. PATENTS
  14. README.md
README.md

Go Vulnerability Management

Go Reference

This repository contains packages for accessing and analyzing data from the Go Vulnerability Database.

See https://go.dev/security/vuln for more information about the Go vulnerability management system.

Privacy Policy

The privacy policy for govulncheck can be found at https://vuln.go.dev/privacy.

License

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Database entries available at https://vuln.go.dev are distributed under the terms of the CC-BY 4.0 license.