on main help sign in
chore: run `modernize`
commit08d5a47c7d4a631f9314522fb63465180a5133a7 authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 21 Jul 2025, 10:51 (1 year ago) parent89e3122
3 files changed+4−4
internal/shell/persistent.go+1−1 internal/shell/shell.go+2−2 internal/tui/components/core/core.go+1−1
internal/shell/persistent.go+1−1
@@ -32,6 +32,6 @@ func GetPersistentShell(cwd string) *PersistentShell {
3232// slog.dapter adapts the internal slog.package to the Logger interface
3333type loggingAdapter struct{}
3434
35−func (l *loggingAdapter) InfoPersist(msg string, keysAndValues ...interface{}) {
35+func (l *loggingAdapter) InfoPersist(msg string, keysAndValues ...any) {
3636 slog.Info(msg, keysAndValues...)
3737}
internal/shell/shell.go+2−2
@@ -35,13 +35,13 @@ const (
3535
3636// Logger interface for optional logging
3737type Logger interface {
38− InfoPersist(msg string, keysAndValues ...interface{})
38+ InfoPersist(msg string, keysAndValues ...any)
3939}
4040
4141// noopLogger is a logger that does nothing
4242type noopLogger struct{}
4343
44−func (noopLogger) InfoPersist(msg string, keysAndValues ...interface{}) {}
44+func (noopLogger) InfoPersist(msg string, keysAndValues ...any) {}
4545
4646// BlockFunc is a function that determines if a command should be blocked
4747type BlockFunc func(args []string) bool
internal/tui/components/core/core.go+1−1
@@ -197,7 +197,7 @@ func SelectableButtonsVertical(buttons []ButtonOpts, spacing int) string {
197197 for i, button := range buttons {
198198 parts = append(parts, SelectableButton(button))
199199 if i < len(buttons)-1 {
200− for j := 0; j < spacing; j++ {
200+ for range spacing {
201201 parts = append(parts, "")
202202 }
203203 }