File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module go.astrophena.name/cloudshell
3
3
go 1.25
4
4
5
5
require (
6
- go.astrophena.name/base v0.11.0
6
+ go.astrophena.name/base v0.12.2
7
7
golang.org/x/crypto v0.42.0
8
8
golang.org/x/oauth2 v0.31.0
9
9
golang.org/x/term v0.35.0
@@ -12,6 +12,7 @@ require (
12
12
require (
13
13
cloud.google.com/go/compute/metadata v0.8.0 // indirect
14
14
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c // indirect
15
+ github.com/lmittmann/tint v1.1.2 // indirect
15
16
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect
16
17
golang.org/x/mod v0.26.0 // indirect
17
18
golang.org/x/sync v0.16.0 // indirect
Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/k
4
4
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c /go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho =
5
5
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8 =
6
6
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 =
9
11
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI =
10
12
golang.org/x/crypto v0.42.0 /go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8 =
11
13
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 h1:1P7xPZEwZMoBoz0Yze5Nx2/4pxj6nw9ZqHWXqP0iRgQ =
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
"errors"
15
15
"fmt"
16
16
"io/fs"
17
+ "log"
17
18
"net"
18
19
"net/http"
19
20
"os"
@@ -27,7 +28,6 @@ import (
27
28
"unicode"
28
29
29
30
"go.astrophena.name/base/cli"
30
- "go.astrophena.name/base/logger"
31
31
"go.astrophena.name/base/request"
32
32
33
33
"golang.org/x/crypto/ssh"
@@ -43,11 +43,11 @@ type app struct {
43
43
stateDir string
44
44
privateKeyPath string // path to the managed private SSH key
45
45
46
- // initialized by Run
46
+ // initialized by initClient
47
+ authed bool
47
48
httpc * http.Client
48
- logf logger. Logf
49
+ logf func ( format string , args ... any )
49
50
oauthConfig * oauth2.Config
50
- authed bool
51
51
}
52
52
53
53
func (a * app ) Run (ctx context.Context ) error {
@@ -266,7 +266,7 @@ func (a *app) initClient(ctx context.Context) error {
266
266
267
267
env := cli .GetEnv (ctx )
268
268
269
- a .logf = env .Logf
269
+ a .logf = log . New ( env .Stderr , "" , 0 ). Printf
270
270
271
271
xdgStateDir := env .Getenv ("XDG_STATE_HOME" )
272
272
if xdgStateDir == "" {
You can’t perform that action at this time.
0 commit comments