Skip to content

Commit 4df65d9

Browse files
committed
Update the version-promote command to align with the new API
1 parent 1401ff6 commit 4df65d9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

apptrust/model/promote_app_version_request.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ const (
88
PromotionTypeDryRun = "dry_run"
99
)
1010

11-
var (
12-
PromotionTypeValues = []string{
13-
PromotionTypeCopy,
14-
PromotionTypeMove,
15-
}
16-
)
11+
var PromotionTypeValues = []string{
12+
PromotionTypeCopy,
13+
PromotionTypeMove,
14+
}
1715

1816
type PromoteAppVersionRequest struct {
1917
Stage string `json:"stage"`

apptrust/service/versions/version_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ package versions
44

55
import (
66
"fmt"
7-
"github.com/jfrog/jfrog-cli-application/apptrust/service"
87
"strconv"
98

9+
"github.com/jfrog/jfrog-cli-application/apptrust/service"
10+
1011
"github.com/jfrog/jfrog-cli-application/apptrust/model"
1112
)
1213

0 commit comments

Comments
 (0)