Skip to content

Commit 42860c3

Browse files
Ansh MendirattaAnsh Mendiratta
authored andcommitted
[chore] go fmt
1 parent 4b7f356 commit 42860c3

15 files changed

Lines changed: 74 additions & 80 deletions

cmd/picoclaw/doctor_binary_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ func TestLookPathWithFallbackReturnsErrorForMissingBinary(t *testing.T) {
2121
t.Fatalf("expected error for missing binary")
2222
}
2323
}
24-

cmd/picoclaw/doctor_gateway_log_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ func TestCheckGatewayLogFlagsConflictWhenTelegramEnabled(t *testing.T) {
4949
t.Fatalf("name = %q, want gateway.telegram", got.Name)
5050
}
5151
}
52-

cmd/picoclaw/doctor_skills_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ func TestResolveBundledSkillsDirForExecutableFindsDevFormulaShareDir(t *testing.
3131
t.Fatalf("resolveBundledSkillsDirForExecutable() = %q, want %q", got, want)
3232
}
3333
}
34-

cmd/picoclaw/env_cmd_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ func TestTuiCmdRunsLocalAppTUI(t *testing.T) {
1515
t.Fatal("expected tuiCmd to invoke local app launcher")
1616
}
1717
}
18-

cmd/picoclaw/main_gateway_pid_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,3 @@ type fakeExitError struct {
117117

118118
func (e *fakeExitError) Error() string { return "exit status" }
119119
func (e *fakeExitError) ExitCode() int { return e.code }
120-

cmd/picoclaw/tui/styles.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ var (
5555
// Status indicator styles.
5656
var (
5757
styleRowNumber = lipgloss.NewStyle().
58-
Foreground(colorMuted).
59-
Align(lipgloss.Right).
60-
Width(4)
58+
Foreground(colorMuted).
59+
Align(lipgloss.Right).
60+
Width(4)
6161

6262
styleOK = lipgloss.NewStyle().Foreground(colorSuccess).Bold(true)
6363
styleWarn = lipgloss.NewStyle().Foreground(colorWarning).Bold(true)

cmd/picoclaw/tui/tab_agent.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ type serviceActionMsg struct {
2424

2525
// AgentModel handles the Agent Service tab.
2626
type AgentModel struct {
27-
exec Executor
28-
logsViewport viewport.Model
29-
logsContent string
30-
logsLoaded bool
31-
actionBusy bool
32-
actionName string
33-
actionStart time.Time
34-
lastAction serviceActionMsg
35-
lastActionAt time.Time
27+
exec Executor
28+
logsViewport viewport.Model
29+
logsContent string
30+
logsLoaded bool
31+
actionBusy bool
32+
actionName string
33+
actionStart time.Time
34+
lastAction serviceActionMsg
35+
lastActionAt time.Time
3636
successStreak int
3737
}
3838

cmd/picoclaw/tui/tab_doctor_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,3 @@ func TestRunDoctorCmd_ReportsCommandFailureWhenOutputIsNotJSON(t *testing.T) {
9898
t.Fatalf("expected raw output in error, got %v", msg.err)
9999
}
100100
}
101-

cmd/picoclaw/tui/tab_email.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ const (
5050
)
5151

5252
type EmailModel struct {
53-
exec Executor
54-
mode emailMode
55-
loaded bool
56-
selectedRow int
57-
enabled bool
58-
provider string
59-
address string
60-
displayName string
61-
baseURL string
62-
keyPresent bool
63-
allowFrom []string
53+
exec Executor
54+
mode emailMode
55+
loaded bool
56+
selectedRow int
57+
enabled bool
58+
provider string
59+
address string
60+
displayName string
61+
baseURL string
62+
keyPresent bool
63+
allowFrom []string
6464
receiveEnabled bool
65-
testRecipient string
66-
lastOut string
67-
flashMsg string
68-
flashUntil time.Time
65+
testRecipient string
66+
lastOut string
67+
flashMsg string
68+
flashUntil time.Time
6969

7070
input textinput.Model
7171
editKey emailField
@@ -375,14 +375,14 @@ func fetchEmailData(exec Executor) tea.Cmd {
375375
var parsed struct {
376376
Channels struct {
377377
Email struct {
378-
Enabled bool `json:"enabled"`
379-
Provider string `json:"provider"`
380-
APIKey string `json:"api_key"`
381-
Address string `json:"address"`
382-
DisplayName string `json:"display_name"`
383-
BaseURL string `json:"base_url"`
378+
Enabled bool `json:"enabled"`
379+
Provider string `json:"provider"`
380+
APIKey string `json:"api_key"`
381+
Address string `json:"address"`
382+
DisplayName string `json:"display_name"`
383+
BaseURL string `json:"base_url"`
384384
AllowFrom flexStringSlice `json:"allow_from"`
385-
ReceiveEnabled bool `json:"receive_enabled"`
385+
ReceiveEnabled bool `json:"receive_enabled"`
386386
} `json:"email"`
387387
} `json:"channels"`
388388
}

cmd/picoclaw/tui/tab_email_test.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99
)
1010

1111
type emailTestExec struct {
12-
configRaw string
13-
readErr error
14-
writtenRaw string
15-
writeErr error
16-
commandOut string
17-
commandErr error
18-
commandArgs []string
12+
configRaw string
13+
readErr error
14+
writtenRaw string
15+
writeErr error
16+
commandOut string
17+
commandErr error
18+
commandArgs []string
1919
}
2020

21-
func (e *emailTestExec) Mode() Mode { return ModeLocal }
21+
func (e *emailTestExec) Mode() Mode { return ModeLocal }
2222
func (e *emailTestExec) ExecShell(_ time.Duration, _ string) (string, error) { return "", nil }
2323
func (e *emailTestExec) ExecCommand(_ time.Duration, args ...string) (string, error) {
2424
e.commandArgs = append([]string(nil), args...)
@@ -45,13 +45,13 @@ func (e *emailTestExec) WriteFile(path string, data []byte, _ os.FileMode) error
4545
}
4646
return nil
4747
}
48-
func (e *emailTestExec) ConfigPath() string { return "/tmp/config.json" }
49-
func (e *emailTestExec) AuthPath() string { return "/tmp/auth.json" }
50-
func (e *emailTestExec) HomePath() string { return "/tmp" }
51-
func (e *emailTestExec) BinaryPath() string { return "sciclaw" }
52-
func (e *emailTestExec) AgentVersion() string { return "vtest" }
53-
func (e *emailTestExec) ServiceInstalled() bool { return true }
54-
func (e *emailTestExec) ServiceActive() bool { return true }
48+
func (e *emailTestExec) ConfigPath() string { return "/tmp/config.json" }
49+
func (e *emailTestExec) AuthPath() string { return "/tmp/auth.json" }
50+
func (e *emailTestExec) HomePath() string { return "/tmp" }
51+
func (e *emailTestExec) BinaryPath() string { return "sciclaw" }
52+
func (e *emailTestExec) AgentVersion() string { return "vtest" }
53+
func (e *emailTestExec) ServiceInstalled() bool { return true }
54+
func (e *emailTestExec) ServiceActive() bool { return true }
5555
func (e *emailTestExec) InteractiveProcess(_ ...string) *exec.Cmd { return exec.Command("true") }
5656

5757
func TestFetchEmailDataParsesConfig(t *testing.T) {

0 commit comments

Comments
 (0)