dive/internal/bus/event/event.go
Alex Goodman 788fcd3834
chore: refactor command structure (#587)
* refactor cli harness

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* use single configuration for ui

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* remove remaining viper rules

* add basic CLI tests

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* separate cmd and api concerns for keybindings

* plumb through context for future logging

* port to using internal logger

* internalize non-analysis path

* encapsulate ui with clio

* merge runtime into cmd + add adapter package

* support legacy config shapes

* improve testing around formatting

* fix log-ui interactions

* fix linting and update test snapshots

* fix initialization of tree viewmodel

* indent files in report

* fix build

* setup qemu and buildx in release workflow

* show formatted output in CI

* add cli tests for source flag

* add default ci config cli test

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2025-04-08 12:19:18 -04:00

21 lines
791 B
Go

package event
import (
"github.com/wagoodman/go-partybus"
)
const (
typePrefix = "dive-cli"
// TaskStarted encompasses all events that are related to the analysis of a docker image (build, fetch, analyze)
TaskStarted partybus.EventType = typePrefix + "-task-started"
// ExploreAnalysis is a partybus event that occurs when an analysis result is ready for presentation to stdout
ExploreAnalysis partybus.EventType = typePrefix + "-analysis"
// Report is a partybus event that occurs when an analysis result is ready for final presentation to stdout
Report partybus.EventType = typePrefix + "-report"
// Notification is a partybus event that occurs when auxiliary information is ready for presentation to stderr
Notification partybus.EventType = typePrefix + "-notification"
)