Skip to content

Commit

Permalink
chore: bump qovery api version
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminch committed Oct 26, 2023
1 parent 12b27a3 commit 34c72d5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cmd/application_clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var applicationCloneCmd = &cobra.Command{

if targetApplicationName == "" {
// use same app name as the source app
targetApplicationName = *application.Name
targetApplicationName = application.Name
}

req := qovery.CloneApplicationRequest{
Expand All @@ -94,7 +94,7 @@ var applicationCloneCmd = &cobra.Command{

name := ""
if clonedService != nil {
name = *clonedService.Name
name = clonedService.Name
}

utils.Println(fmt.Sprintf("Application %s cloned!", pterm.FgBlue.Sprintf(name)))
Expand Down
2 changes: 1 addition & 1 deletion cmd/application_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var applicationListCmd = &cobra.Command{
var data [][]string

for _, application := range applications.GetResults() {
data = append(data, []string{application.Id, *application.Name, "Application",
data = append(data, []string{application.Id, application.Name, "Application",
utils.FindStatusTextWithColor(statuses.GetApplications(), application.Id), application.UpdatedAt.String()})
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/application_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var applicationUpdateCmd = &cobra.Command{

req := qovery.ApplicationEditRequest{
Storage: storage,
Name: application.Name,
Name: &application.Name,
Description: application.Description.Get(),
GitRepository: &qovery.ApplicationGitRepositoryRequest{
Url: *application.GitRepository.Url,
Expand Down
2 changes: 1 addition & 1 deletion cmd/service_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ Powered by [Qovery](https://qovery.com).`

consoleLink := fmt.Sprintf("https://console.qovery.com/organization/%s/project/%s/environment/%s/application/%s", orgId, projectId, envId, app.Id)
consoleLogsLink := fmt.Sprintf("https://console.qovery.com/organization/%s/project/%s/environment/%s/logs/%s/live-logs", orgId, projectId, envId, app.Id)
body += fmt.Sprintf("\n| [%s](%s) | [Show logs](%s) | %s |", *app.Name, consoleLink, consoleLogsLink, *previewUrl)
body += fmt.Sprintf("\n| [%s](%s) | [Show logs](%s) | %s |", app.Name, consoleLink, consoleLogsLink, *previewUrl)
}

for _, container := range containers {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/posthog/posthog-go v0.0.0-20221221115252-24dfed35d71a
github.com/pterm/pterm v0.12.55
github.com/qovery/qovery-client-go v0.0.0-20231011161912-c7440f44509f
github.com/qovery/qovery-client-go v0.0.0-20231026155011-32f75bc052b7
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ github.com/pterm/pterm v0.12.55 h1:+yVQi8lyCi5Zwg5VyZWkLV/sJl3HCmqji9cyWzcThSU=
github.com/pterm/pterm v0.12.55/go.mod h1:7rswprkyxYOse1IMh79w42jvReNHxro4z9oHfqjIdzM=
github.com/qovery/qovery-client-go v0.0.0-20231011161912-c7440f44509f h1:pa41jP49/RCVmO8iaiFZF2mFtw0UUPD5h6no52jkBKQ=
github.com/qovery/qovery-client-go v0.0.0-20231011161912-c7440f44509f/go.mod h1:5QD7sC1Z6XCCYd31c4XKVwGdEOjvtgG0NDcaVDoWb+o=
github.com/qovery/qovery-client-go v0.0.0-20231026155011-32f75bc052b7 h1:ud76488ko7z9k/u5jguFDZ1oKNh09VoPvrSOtPoP6bU=
github.com/qovery/qovery-client-go v0.0.0-20231026155011-32f75bc052b7/go.mod h1:5QD7sC1Z6XCCYd31c4XKVwGdEOjvtgG0NDcaVDoWb+o=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
Expand Down
8 changes: 4 additions & 4 deletions utils/qovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ func SelectService(environment Id) (*Service, error) {
var services = make(map[string]Service)

for _, app := range apps.GetResults() {
servicesNames = append(servicesNames, *app.Name)
services[*app.Name] = Service{
servicesNames = append(servicesNames, app.Name)
services[app.Name] = Service{
ID: Id(app.Id),
Name: Name(*app.Name),
Name: Name(app.Name),
Type: ApplicationType,
}
}
Expand Down Expand Up @@ -944,7 +944,7 @@ func FindByEnvironmentName(environments []qovery.Environment, name string) *qove

func FindByApplicationName(applications []qovery.Application, name string) *qovery.Application {
for _, a := range applications {
if *a.Name == name {
if a.Name == name {
return &a
}
}
Expand Down

0 comments on commit 34c72d5

Please sign in to comment.