-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.go
More file actions
77 lines (69 loc) · 2.17 KB
/
Copy pathmodels.go
File metadata and controls
77 lines (69 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package main
type Group struct {
ID int64 `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
SortOrder int `json:"sortOrder"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type Entry struct {
ID int64 `json:"id"`
GroupID int64 `json:"groupId"`
Name string `json:"name"`
Icon string `json:"icon"`
ScriptPath string `json:"scriptPath"`
WorkingDirectory string `json:"workingDirectory"`
Arguments string `json:"arguments"`
ShowTerminal bool `json:"showTerminal"`
SortOrder int `json:"sortOrder"`
ClickCount int64 `json:"clickCount"`
LastClickedAt string `json:"lastClickedAt"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type Setting struct {
Key string `json:"key"`
Value string `json:"value"`
}
type AppState struct {
Groups []Group `json:"groups"`
Entries []Entry `json:"entries"`
Settings []Setting `json:"settings"`
}
type GroupInput struct {
Name string `json:"name"`
Icon string `json:"icon"`
}
type EntryInput struct {
GroupID int64 `json:"groupId"`
Name string `json:"name"`
Icon string `json:"icon"`
ScriptPath string `json:"scriptPath"`
WorkingDirectory string `json:"workingDirectory"`
Arguments string `json:"arguments"`
ShowTerminal bool `json:"showTerminal"`
}
type ExecutionResult struct {
EntryID int64 `json:"entryId"`
Status string `json:"status"`
Message string `json:"message"`
Output string `json:"output"`
Error string `json:"error"`
ExitCode int `json:"exitCode"`
StartedAt string `json:"startedAt"`
EndedAt string `json:"endedAt"`
DurationMS int64 `json:"durationMs"`
}
type ExecutionEvent struct {
EntryID int64 `json:"entryId"`
EntryName string `json:"entryName"`
Kind string `json:"kind"`
Stream string `json:"stream"`
Text string `json:"text"`
Status string `json:"status"`
Error string `json:"error"`
ExitCode int `json:"exitCode"`
Timestamp string `json:"timestamp"`
DurationMS int64 `json:"durationMs"`
}