apps/sipp/tui/messages.go 532 B raw
1
package tui
2
3
import sharedtui "github.com/stevedylandev/andromeda/pkg/tui"
4
5
type snippetsLoadedMsg struct {
6
	Snippets []Snippet
7
	Err      error
8
}
9
10
type snippetSavedMsg struct {
11
	Snippet *Snippet
12
	Err     error
13
}
14
15
type snippetDeletedMsg struct {
16
	ShortID string
17
	Err     error
18
}
19
20
type submitFormMsg struct {
21
	ShortID string
22
	Name    string
23
	Content string
24
}
25
26
type cancelFormMsg struct{}
27
28
type (
29
	statusMsg         = sharedtui.StatusMsg
30
	clearStatusMsg    = sharedtui.ClearStatusMsg
31
	editorFinishedMsg = sharedtui.EditorFinishedMsg
32
)