Skip to content

Commit 5cbeaa6

Browse files
committed
Commands for binding and unbinding packages to applications
1 parent e7c1636 commit 5cbeaa6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

apptrust/commands/package/bind_package_cmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"github.com/jfrog/jfrog-cli-application/apptrust/app"
55
"github.com/jfrog/jfrog-cli-application/apptrust/commands"
66
"github.com/jfrog/jfrog-cli-application/apptrust/commands/utils"
7+
"github.com/jfrog/jfrog-cli-application/apptrust/common"
78
"github.com/jfrog/jfrog-cli-application/apptrust/model"
89
"github.com/jfrog/jfrog-cli-application/apptrust/service"
910
"github.com/jfrog/jfrog-cli-application/apptrust/service/packages"
@@ -57,7 +58,8 @@ func GetBindPackageCommand(appContext app.Context) components.Command {
5758
cmd := &bindPackageCommand{packageService: appContext.GetPackageService()}
5859
return components.Command{
5960
Name: commands.PackageBind,
60-
Description: "Bind packages to an application.",
61+
Description: "Bind packages to an application",
62+
Category: common.CategoryPackage,
6163
Aliases: []string{"pb"},
6264
Arguments: []components.Argument{
6365
{

apptrust/commands/package/unbind_package_cmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"github.com/jfrog/jfrog-cli-application/apptrust/app"
55
"github.com/jfrog/jfrog-cli-application/apptrust/commands"
66
"github.com/jfrog/jfrog-cli-application/apptrust/commands/utils"
7+
"github.com/jfrog/jfrog-cli-application/apptrust/common"
78
"github.com/jfrog/jfrog-cli-application/apptrust/model"
89
"github.com/jfrog/jfrog-cli-application/apptrust/service"
910
"github.com/jfrog/jfrog-cli-application/apptrust/service/packages"
@@ -57,7 +58,8 @@ func GetUnbindPackageCommand(appContext app.Context) components.Command {
5758
cmd := &unbindPackageCommand{packageService: appContext.GetPackageService()}
5859
return components.Command{
5960
Name: commands.PackageUnbind,
60-
Description: "Unbind packages from an application.",
61+
Description: "Unbind packages from an application",
62+
Category: common.CategoryPackage,
6163
Aliases: []string{"pu"},
6264
Arguments: []components.Argument{
6365
{

apptrust/common/categories.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package common
22

33
const (
44
CategorySystem = "system"
5-
CategoryVersion = "version"
65
CategoryApplication = "application"
6+
CategoryVersion = "version"
7+
CategoryPackage = "package"
78
)

0 commit comments

Comments
 (0)