Commit 9245767 1 parent 0ba1752 commit 9245767 Copy full SHA for 9245767
File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+ .idea
2
+
1
3
ultrafocus
2
4
demo.cast
3
5
.DS_Store
Original file line number Diff line number Diff line change 7
7
)
8
8
9
9
type command struct {
10
+ Run func (m model ) model
10
11
Name string
11
12
Desc string
12
- Run func (m model ) model
13
13
}
14
14
15
15
var commandFocusOn = command {
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ const (
16
16
)
17
17
18
18
type model struct {
19
- commandsListSelection int
19
+ textarea textarea. Model
20
20
fatalErr error
21
+ status hosts.FocusStatus
21
22
domains []string
23
+ commandsListSelection int
22
24
state sessionState
23
- status hosts.FocusStatus
24
- textarea textarea.Model
25
25
}
26
26
27
27
func NewModel () model {
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ func TestExtractDomainsFromData(t *testing.T) {
9
9
tests := []struct {
10
10
name string
11
11
data string
12
- wantDomains []string
13
12
wantStatus FocusStatus
13
+ wantDomains []string
14
14
wantErr bool
15
15
}{
16
16
{
@@ -77,9 +77,9 @@ func TestUpdateHostsData(t *testing.T) {
77
77
tests := []struct {
78
78
name string
79
79
originalData string
80
- domains []string
81
80
status FocusStatus
82
81
wantNewData string
82
+ domains []string
83
83
wantErr bool
84
84
}{
85
85
{
You can’t perform that action at this time.
0 commit comments