mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
distro: add a Name stringer
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
64a9125895
commit
f1851556a8
@ -33,5 +33,10 @@ func (d Distro) FullVersion() string {
|
||||
}
|
||||
|
||||
func (d Distro) String() string {
|
||||
return fmt.Sprintf("%s %s", d.Type, d.Version)
|
||||
return fmt.Sprintf("%s %s", d.Type, d.RawVersion)
|
||||
}
|
||||
|
||||
// Name provides a string repr of the distro
|
||||
func (d Distro) Name() string {
|
||||
return fmt.Sprintf("%s", d.Type)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user