Skip to content

Commit 4fcd269

Browse files
go.mod: bump go.astrophena.name/base from 0.11.0 to 0.12.2 (#54)
Bumps [go.astrophena.name/base](https://github.com/astrophena/base) from 0.11.0 to 0.12.2. - [Commits](astrophena/base@v0.11.0...v0.12.2) --- updated-dependencies: - dependency-name: go.astrophena.name/base dependency-version: 0.12.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 04505c5 commit 4fcd269

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module go.astrophena.name/cloudshell
33
go 1.25
44

55
require (
6-
go.astrophena.name/base v0.11.0
6+
go.astrophena.name/base v0.12.2
77
golang.org/x/crypto v0.42.0
88
golang.org/x/oauth2 v0.31.0
99
golang.org/x/term v0.35.0
@@ -12,6 +12,7 @@ require (
1212
require (
1313
cloud.google.com/go/compute/metadata v0.8.0 // indirect
1414
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c // indirect
15+
github.com/lmittmann/tint v1.1.2 // indirect
1516
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect
1617
golang.org/x/mod v0.26.0 // indirect
1718
golang.org/x/sync v0.16.0 // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/k
44
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
55
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
66
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
7-
go.astrophena.name/base v0.11.0 h1:suHN1TczV0hJ/Qmwe1LnNF6yNgfYqqhUWn08LMFZF+k=
8-
go.astrophena.name/base v0.11.0/go.mod h1:YFg5M1SwA6h4+JSZKAOQ4+fdaV8gX91z2P0eCwTQL8s=
7+
github.com/lmittmann/tint v1.1.2 h1:2CQzrL6rslrsyjqLDwD11bZ5OpLBPU+g3G/r5LSfS8w=
8+
github.com/lmittmann/tint v1.1.2/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
9+
go.astrophena.name/base v0.12.2 h1:+/5ikGrIN49WLSFAA2SCPFg4bficnkCebVDzrtZ7F2A=
10+
go.astrophena.name/base v0.12.2/go.mod h1:X4vEARmyIhqs+8tLMQY0O79U9U1Xcni4WJGIrBRXDRA=
911
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
1012
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
1113
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 h1:1P7xPZEwZMoBoz0Yze5Nx2/4pxj6nw9ZqHWXqP0iRgQ=

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"errors"
1515
"fmt"
1616
"io/fs"
17+
"log"
1718
"net"
1819
"net/http"
1920
"os"
@@ -27,7 +28,6 @@ import (
2728
"unicode"
2829

2930
"go.astrophena.name/base/cli"
30-
"go.astrophena.name/base/logger"
3131
"go.astrophena.name/base/request"
3232

3333
"golang.org/x/crypto/ssh"
@@ -43,11 +43,11 @@ type app struct {
4343
stateDir string
4444
privateKeyPath string // path to the managed private SSH key
4545

46-
// initialized by Run
46+
// initialized by initClient
47+
authed bool
4748
httpc *http.Client
48-
logf logger.Logf
49+
logf func(format string, args ...any)
4950
oauthConfig *oauth2.Config
50-
authed bool
5151
}
5252

5353
func (a *app) Run(ctx context.Context) error {
@@ -266,7 +266,7 @@ func (a *app) initClient(ctx context.Context) error {
266266

267267
env := cli.GetEnv(ctx)
268268

269-
a.logf = env.Logf
269+
a.logf = log.New(env.Stderr, "", 0).Printf
270270

271271
xdgStateDir := env.Getenv("XDG_STATE_HOME")
272272
if xdgStateDir == "" {

0 commit comments

Comments
 (0)