mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
replace power-user presenter with syft-json format
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
+1
-1
@@ -283,7 +283,7 @@ func packagesExecWorker(userInput string) <-chan error {
|
||||
|
||||
bus.Publish(partybus.Event{
|
||||
Type: event.PresenterReady,
|
||||
Value: f.Presenter(s),
|
||||
Value: f.Presenter(s, appConfig),
|
||||
})
|
||||
}()
|
||||
return errs
|
||||
|
||||
+3
-2
@@ -4,6 +4,8 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/anchore/syft/internal/formats/syftjson"
|
||||
|
||||
"github.com/anchore/syft/syft/artifact"
|
||||
"github.com/gookit/color"
|
||||
|
||||
@@ -13,7 +15,6 @@ import (
|
||||
"github.com/anchore/syft/internal"
|
||||
"github.com/anchore/syft/internal/bus"
|
||||
"github.com/anchore/syft/internal/log"
|
||||
"github.com/anchore/syft/internal/presenter/poweruser"
|
||||
"github.com/anchore/syft/internal/ui"
|
||||
"github.com/anchore/syft/syft/event"
|
||||
"github.com/anchore/syft/syft/source"
|
||||
@@ -139,7 +140,7 @@ func powerUserExecWorker(userInput string) <-chan error {
|
||||
|
||||
bus.Publish(partybus.Event{
|
||||
Type: event.PresenterReady,
|
||||
Value: poweruser.NewJSONPresenter(s, *appConfig),
|
||||
Value: syftjson.Format().Presenter(s, *appConfig),
|
||||
})
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user