mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
21 lines
274 B
Go
21 lines
274 B
Go
|
package bus
|
||
|
|
||
|
import (
|
||
|
"github.com/wagoodman/go-partybus"
|
||
|
|
||
|
"github.com/anchore/grype/grype/event"
|
||
|
)
|
||
|
|
||
|
func Exit() {
|
||
|
Publish(partybus.Event{
|
||
|
Type: event.CLIExit,
|
||
|
})
|
||
|
}
|
||
|
|
||
|
func Report(report string) {
|
||
|
Publish(partybus.Event{
|
||
|
Type: event.CLIReport,
|
||
|
Value: report,
|
||
|
})
|
||
|
}
|