mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
presenter: allow a text presenter option
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
acbeea9800
commit
72f9091493
@ -5,6 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/anchore/imgbom/imgbom/pkg"
|
"github.com/anchore/imgbom/imgbom/pkg"
|
||||||
"github.com/anchore/imgbom/imgbom/presenter/json"
|
"github.com/anchore/imgbom/imgbom/presenter/json"
|
||||||
|
"github.com/anchore/imgbom/imgbom/presenter/text"
|
||||||
"github.com/anchore/stereoscope/pkg/image"
|
"github.com/anchore/stereoscope/pkg/image"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -16,6 +17,8 @@ func GetPresenter(option Option) Presenter {
|
|||||||
switch option {
|
switch option {
|
||||||
case JSONPresenter:
|
case JSONPresenter:
|
||||||
return json.NewPresenter()
|
return json.NewPresenter()
|
||||||
|
case TextPresenter:
|
||||||
|
return text.NewPresenter()
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user