From 72f90914939c7ca8d9f2d97febf44f21de10a2c9 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 19 Jun 2020 15:46:31 -0400 Subject: [PATCH] presenter: allow a text presenter option Signed-off-by: Alfredo Deza --- imgbom/presenter/presenter.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgbom/presenter/presenter.go b/imgbom/presenter/presenter.go index ed2eab414..421618985 100644 --- a/imgbom/presenter/presenter.go +++ b/imgbom/presenter/presenter.go @@ -5,6 +5,7 @@ import ( "github.com/anchore/imgbom/imgbom/pkg" "github.com/anchore/imgbom/imgbom/presenter/json" + "github.com/anchore/imgbom/imgbom/presenter/text" "github.com/anchore/stereoscope/pkg/image" ) @@ -16,6 +17,8 @@ func GetPresenter(option Option) Presenter { switch option { case JSONPresenter: return json.NewPresenter() + case TextPresenter: + return text.NewPresenter() default: return nil }