make vet&fmt pass

This commit is contained in:
techknowlogick
2026-03-10 09:55:10 -04:00
parent c797624fcf
commit cd4051ed38
7 changed files with 9 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ import (
"io"
"strings"
"code.gitea.io/sdk/gitea"
"code.gitea.io/tea/cmd/flags"
"code.gitea.io/tea/modules/config"
"code.gitea.io/tea/modules/context"
@@ -18,7 +19,6 @@ import (
"code.gitea.io/tea/modules/theme"
"code.gitea.io/tea/modules/utils"
"code.gitea.io/sdk/gitea"
"charm.land/huh/v2"
"github.com/urfave/cli/v3"
)

View File

@@ -21,6 +21,7 @@ import (
"code.gitea.io/tea/modules/httputil"
"code.gitea.io/tea/modules/theme"
"code.gitea.io/tea/modules/utils"
"charm.land/huh/v2"
"golang.org/x/oauth2"
)

View File

@@ -7,11 +7,11 @@ import (
"fmt"
"time"
"code.gitea.io/sdk/gitea"
"code.gitea.io/tea/modules/config"
"code.gitea.io/tea/modules/task"
"code.gitea.io/tea/modules/theme"
"code.gitea.io/sdk/gitea"
"charm.land/huh/v2"
)

View File

@@ -11,6 +11,7 @@ import (
"code.gitea.io/tea/modules/theme"
"code.gitea.io/tea/modules/utils"
"charm.land/huh/v2"
)

View File

@@ -7,12 +7,12 @@ import (
"fmt"
"strings"
"code.gitea.io/sdk/gitea"
"code.gitea.io/tea/cmd/flags"
"code.gitea.io/tea/modules/context"
"code.gitea.io/tea/modules/task"
"code.gitea.io/tea/modules/utils"
"code.gitea.io/sdk/gitea"
"charm.land/huh/v2"
)

View File

@@ -8,12 +8,12 @@ import (
"os"
"strconv"
"code.gitea.io/sdk/gitea"
"code.gitea.io/tea/modules/config"
"code.gitea.io/tea/modules/context"
"code.gitea.io/tea/modules/task"
"code.gitea.io/tea/modules/theme"
"code.gitea.io/sdk/gitea"
"charm.land/huh/v2"
)

View File

@@ -9,9 +9,9 @@ import (
"charm.land/lipgloss/v2/compat"
)
type myTheme struct {}
type myTheme struct{}
func (t myTheme) Theme (isDark bool) *huh.Styles {
func (t myTheme) Theme(isDark bool) *huh.Styles {
theme := huh.ThemeCharm(isDark)
title := compat.AdaptiveColor{Light: lipgloss.Color("#02BA84"), Dark: lipgloss.Color("#02BF87")}
@@ -19,6 +19,7 @@ func (t myTheme) Theme (isDark bool) *huh.Styles {
theme.Blurred = theme.Focused
return theme
}
func GetTheme() myTheme {
var t myTheme
return t