@@ -13,7 +13,7 @@ import (
1313//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -generate types,client,spec -package session -o session_gen.go api.spec.yaml
1414
1515type RenkuSessionClient struct {
16- bacseClient * ClientWithResponses
16+ baseClient * ClientWithResponses
1717 httpClient * http.Client
1818 requestEditors []RequestEditorFn
1919}
@@ -47,7 +47,7 @@ func NewRenkuSessionClient(apiURL string, options ...RenkuSessionClientOption) (
4747 if err != nil {
4848 return nil , err
4949 }
50- c .bacseClient = client
50+ c .baseClient = client
5151 return c , nil
5252}
5353
@@ -68,7 +68,7 @@ func WithRequestEditors(editors ...RequestEditorFn) RenkuSessionClientOption {
6868}
6969
7070func (c * RenkuSessionClient ) GetGlobalEnvironments (ctx context.Context ) (environments EnvironmentList , err error ) {
71- res , err := c .bacseClient .GetEnvironmentsWithResponse (ctx , nil )
71+ res , err := c .baseClient .GetEnvironmentsWithResponse (ctx , nil )
7272 if err != nil {
7373 return environments , err
7474 }
@@ -86,7 +86,7 @@ func (c *RenkuSessionClient) GetGlobalEnvironments(ctx context.Context) (environ
8686}
8787
8888func (c * RenkuSessionClient ) PostGlobalEnvironment (ctx context.Context , body EnvironmentPost ) (environment Environment , err error ) {
89- res , err := c .bacseClient .PostEnvironmentsWithResponse (ctx , body )
89+ res , err := c .baseClient .PostEnvironmentsWithResponse (ctx , body )
9090 if err != nil {
9191 return environment , err
9292 }
@@ -104,7 +104,7 @@ func (c *RenkuSessionClient) PostGlobalEnvironment(ctx context.Context, body Env
104104}
105105
106106func (c * RenkuSessionClient ) PatchGlobalEnvironment (ctx context.Context , environmentId Ulid , body EnvironmentPatch ) (environment Environment , err error ) {
107- res , err := c .bacseClient .PatchEnvironmentsEnvironmentIdWithResponse (ctx , environmentId , body )
107+ res , err := c .baseClient .PatchEnvironmentsEnvironmentIdWithResponse (ctx , environmentId , body )
108108 if err != nil {
109109 return environment , err
110110 }
@@ -125,7 +125,11 @@ func (c *RenkuSessionClient) PatchGlobalEnvironment(ctx context.Context, environ
125125}
126126
127127func (c * RenkuSessionClient ) UpdateGlobalImages (ctx context.Context , images []string , tag string , existingEnvironments EnvironmentList , dryRun bool ) error {
128- fmt .Println ("Performing the following updates:" )
128+ if dryRun {
129+ fmt .Println ("The following updates would be performed:" )
130+ } else {
131+ fmt .Println ("Performing the following updates:" )
132+ }
129133 for _ , image := range images {
130134 _ , err := c .updateGlobalImage (ctx , image , tag , existingEnvironments , dryRun )
131135 if err != nil {
0 commit comments