File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - name : Setup go
1919 uses : actions/setup-go@v5
2020 with :
21- go-version : " ^1.24 .0"
21+ go-version : " ^1.26 .0"
2222
2323 - name : Initialize submodules
2424 run : |
Original file line number Diff line number Diff line change 6161 - name : Install go
6262 uses : actions/setup-go@v5
6363 with :
64- go-version : " ^1.24 .0"
64+ go-version : " ^1.26 .0"
6565
6666 - name : Initialize submodules
6767 run : |
@@ -116,7 +116,7 @@ jobs:
116116 - name : Install go
117117 uses : actions/setup-go@v5
118118 with :
119- go-version : " ^1.24 .0"
119+ go-version : " ^1.26 .0"
120120
121121 - name : Initialize submodules
122122 run : |
Original file line number Diff line number Diff line change 3737 - name : Install go
3838 uses : actions/setup-go@v5
3939 with :
40- go-version : " ^1.24 .0"
40+ go-version : " ^1.26 .0"
4141
4242 - name : Initialize submodules
4343 run : |
8989 - name : Install go
9090 uses : actions/setup-go@v5
9191 with :
92- go-version : " ^1.24 .0"
92+ go-version : " ^1.26 .0"
9393
9494 - name : Initialize submodules
9595 run : |
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ COPY ./frontend/vite.config.ts ./
2020RUN bun run build
2121
2222# Builder
23- FROM golang:1.25 -alpine3.21 AS builder
23+ FROM golang:1.26 -alpine3.21 AS builder
2424
2525ARG VERSION
2626ARG COMMIT_HASH
Original file line number Diff line number Diff line change 1- FROM golang:1.25 -alpine3.21
1+ FROM golang:1.26 -alpine3.21
22
33WORKDIR /tinyauth
44
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ COPY ./frontend/vite.config.ts ./
2020RUN bun run build
2121
2222# Builder
23- FROM golang:1.25 -alpine3.21 AS builder
23+ FROM golang:1.26 -alpine3.21 AS builder
2424
2525ARG VERSION
2626ARG COMMIT_HASH
Original file line number Diff line number Diff line change 55 "fmt"
66 "strings"
77
8- "github.com/charmbracelet/ huh"
8+ "charm.land/ huh/v2 "
99 "github.com/steveiliop56/tinyauth/internal/utils/tlog"
1010 "github.com/traefik/paerser/cli"
1111 "golang.org/x/crypto/bcrypt"
@@ -61,9 +61,8 @@ func createUserCmd() *cli.Command {
6161 ),
6262 )
6363
64- var baseTheme * huh.Theme = huh .ThemeBase ()
65-
66- err := form .WithTheme (baseTheme ).Run ()
64+ theme := new (themeBase )
65+ err := form .WithTheme (theme ).Run ()
6766
6867 if err != nil {
6968 return fmt .Errorf ("failed to run interactive prompt: %w" , err )
Original file line number Diff line number Diff line change 99 "github.com/steveiliop56/tinyauth/internal/utils"
1010 "github.com/steveiliop56/tinyauth/internal/utils/tlog"
1111
12- "github.com/charmbracelet/ huh"
12+ "charm.land/ huh/v2 "
1313 "github.com/mdp/qrterminal/v3"
1414 "github.com/pquerna/otp/totp"
1515 "github.com/traefik/paerser/cli"
@@ -54,9 +54,8 @@ func generateTotpCmd() *cli.Command {
5454 ),
5555 )
5656
57- var baseTheme * huh.Theme = huh .ThemeBase ()
58-
59- err := form .WithTheme (baseTheme ).Run ()
57+ theme := new (themeBase )
58+ err := form .WithTheme (theme ).Run ()
6059
6160 if err != nil {
6261 return fmt .Errorf ("failed to run interactive prompt: %w" , err )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
33import (
44 "fmt"
55
6+ "charm.land/huh/v2"
67 "github.com/steveiliop56/tinyauth/internal/bootstrap"
78 "github.com/steveiliop56/tinyauth/internal/config"
89 "github.com/steveiliop56/tinyauth/internal/utils/loaders"
@@ -123,3 +124,9 @@ func runCmd(cfg config.Config) error {
123124
124125 return nil
125126}
127+
128+ type themeBase struct {}
129+
130+ func (t * themeBase ) Theme (isDark bool ) * huh.Styles {
131+ return huh .ThemeBase (isDark )
132+ }
Original file line number Diff line number Diff line change 77 "github.com/steveiliop56/tinyauth/internal/utils"
88 "github.com/steveiliop56/tinyauth/internal/utils/tlog"
99
10- "github.com/charmbracelet/ huh"
10+ "charm.land/ huh/v2 "
1111 "github.com/pquerna/otp/totp"
1212 "github.com/traefik/paerser/cli"
1313 "golang.org/x/crypto/bcrypt"
@@ -71,9 +71,8 @@ func verifyUserCmd() *cli.Command {
7171 ),
7272 )
7373
74- var baseTheme * huh.Theme = huh .ThemeBase ()
75-
76- err := form .WithTheme (baseTheme ).Run ()
74+ theme := new (themeBase )
75+ err := form .WithTheme (theme ).Run ()
7776
7877 if err != nil {
7978 return fmt .Errorf ("failed to run interactive prompt: %w" , err )
You can’t perform that action at this time.
0 commit comments