Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 81921b7

Browse files
authoredApr 30, 2021
Merge pull request operator-framework#646 from dinhxuanvu/config-alpha
Move config serve and validate to opm alpha
2 parents 83884aa + dbb041c commit 81921b7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎cmd/opm/alpha/cmd.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package alpha
33
import (
44
"github.com/operator-framework/operator-registry/cmd/opm/alpha/add"
55
"github.com/operator-framework/operator-registry/cmd/opm/alpha/bundle"
6+
"github.com/operator-framework/operator-registry/cmd/opm/alpha/serve"
7+
"github.com/operator-framework/operator-registry/cmd/opm/alpha/validate"
68
"github.com/spf13/cobra"
79
)
810

@@ -13,6 +15,6 @@ func NewCmd() *cobra.Command {
1315
Short: "Run an alpha subcommand",
1416
}
1517

16-
runCmd.AddCommand(bundle.NewCmd(), add.NewCmd())
18+
runCmd.AddCommand(bundle.NewCmd(), add.NewCmd(), serve.NewCmd(), validate.NewCmd())
1719
return runCmd
1820
}
File renamed without changes.
File renamed without changes.

‎cmd/opm/root/cmd.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import (
77
"github.com/operator-framework/operator-registry/cmd/opm/alpha"
88
"github.com/operator-framework/operator-registry/cmd/opm/index"
99
"github.com/operator-framework/operator-registry/cmd/opm/registry"
10-
"github.com/operator-framework/operator-registry/cmd/opm/serve"
11-
"github.com/operator-framework/operator-registry/cmd/opm/validate"
1210
"github.com/operator-framework/operator-registry/cmd/opm/version"
1311
)
1412

@@ -25,7 +23,7 @@ func NewCmd() *cobra.Command {
2523
},
2624
}
2725

28-
cmd.AddCommand(registry.NewOpmRegistryCmd(), alpha.NewCmd(), serve.NewCmd(), validate.NewCmd())
26+
cmd.AddCommand(registry.NewOpmRegistryCmd(), alpha.NewCmd())
2927
index.AddCommand(cmd)
3028
version.AddCommand(cmd)
3129

0 commit comments

Comments
 (0)
Please sign in to comment.