Skip to content

Commit

Permalink
update gerritcli
Browse files Browse the repository at this point in the history
  • Loading branch information
shijl0925 committed Jun 9, 2024
1 parent 28c2aa9 commit 4ebadd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cli/gerritctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ func (g *GerritMod) Init(config Config) error {
g.Password = config.Password
g.Context = context.Background()

client, err := gerrit.NewClient(g.Url, g.Username, g.Password)
client, err := gerrit.NewClient(g.Url)
client.SetBasicAuth(g.Username, g.Password)

g.Instance = client

return err
Expand Down
2 changes: 1 addition & 1 deletion cli/gerritctl/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/shijl0925/gerritctl
go 1.20

require (
github.com/shijl0925/go-gerrit v0.0.0-20240608080244-6218c9d8c73a
github.com/shijl0925/go-gerrit v0.0.0-20240609091135-28c2aa9e1854
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.7.0
)
Expand Down
4 changes: 2 additions & 2 deletions cli/gerritctl/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/shijl0925/go-gerrit v0.0.0-20240608080244-6218c9d8c73a h1:oEM1DMDJPUen+7qML3y0ATdkCGwsLzther9Ii4B3gZs=
github.com/shijl0925/go-gerrit v0.0.0-20240608080244-6218c9d8c73a/go.mod h1:F+AhSobfZx4QZheu+PWTCU5I54gGfBJuvApOjbLlnxI=
github.com/shijl0925/go-gerrit v0.0.0-20240609091135-28c2aa9e1854 h1:OJ3nzZFEbLLQ+uQ7XHKvlPsZc5R1iqN5Vbweo9dfqA4=
github.com/shijl0925/go-gerrit v0.0.0-20240609091135-28c2aa9e1854/go.mod h1:F+AhSobfZx4QZheu+PWTCU5I54gGfBJuvApOjbLlnxI=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
Expand Down

0 comments on commit 4ebadd9

Please sign in to comment.