File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ .idea
2+
13ultrafocus
24demo.cast
35.DS_Store
Original file line number Diff line number Diff line change 77)
88
99type command struct {
10+ Run func (m model ) model
1011 Name string
1112 Desc string
12- Run func (m model ) model
1313}
1414
1515var commandFocusOn = command {
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ const (
1616)
1717
1818type model struct {
19- commandsListSelection int
19+ textarea textarea. Model
2020 fatalErr error
21+ status hosts.FocusStatus
2122 domains []string
23+ commandsListSelection int
2224 state sessionState
23- status hosts.FocusStatus
24- textarea textarea.Model
2525}
2626
2727func NewModel () model {
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ func TestExtractDomainsFromData(t *testing.T) {
99 tests := []struct {
1010 name string
1111 data string
12- wantDomains []string
1312 wantStatus FocusStatus
13+ wantDomains []string
1414 wantErr bool
1515 }{
1616 {
@@ -77,9 +77,9 @@ func TestUpdateHostsData(t *testing.T) {
7777 tests := []struct {
7878 name string
7979 originalData string
80- domains []string
8180 status FocusStatus
8281 wantNewData string
82+ domains []string
8383 wantErr bool
8484 }{
8585 {
You can’t perform that action at this time.
0 commit comments