mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
remove metadata from text presenter (#90)
This commit is contained in:
parent
9e285fd0e2
commit
4fa391b4cb
@ -52,9 +52,6 @@ func (pres *Presenter) Present(output io.Writer) error {
|
|||||||
fmt.Fprintln(w, fmt.Sprintf("[%s]", p.Name))
|
fmt.Fprintln(w, fmt.Sprintf("[%s]", p.Name))
|
||||||
fmt.Fprintln(w, " Version:\t", p.Version)
|
fmt.Fprintln(w, " Version:\t", p.Version)
|
||||||
fmt.Fprintln(w, " Type:\t", p.Type.String())
|
fmt.Fprintln(w, " Type:\t", p.Type.String())
|
||||||
if p.Metadata != nil {
|
|
||||||
fmt.Fprintf(w, " Metadata:\t%+v\n", p.Metadata)
|
|
||||||
}
|
|
||||||
fmt.Fprintln(w, " Found by:\t", p.FoundBy)
|
fmt.Fprintln(w, " Found by:\t", p.FoundBy)
|
||||||
fmt.Fprintln(w)
|
fmt.Fprintln(w)
|
||||||
w.Flush()
|
w.Flush()
|
||||||
|
|||||||
@ -17,6 +17,5 @@
|
|||||||
[package-2]
|
[package-2]
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Type: deb
|
Type: deb
|
||||||
Metadata: {Name:package-2 Version:1.0.2}
|
|
||||||
Found by: dpkg
|
Found by: dpkg
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user