Skip to content

Commit

Permalink
Make "instance ls" command available on mono-object selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Sep 5, 2023
1 parent 9f76ef3 commit 640a4ae
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ func init() {

cmdObject := newCmdCfg()
cmdObjectEdit := newCmdObjectEdit(kind)
cmdObjectInstance := newCmdObjectInstance(kind)
cmdObjectSet := newCmdObjectSet(kind)
cmdObjectPrint := newCmdObjectPrint(kind)
cmdObjectPrintConfig := newCmdObjectPrintConfig(kind)
Expand All @@ -15,6 +16,7 @@ func init() {
)
cmdObject.AddCommand(
cmdObjectEdit,
cmdObjectInstance,
cmdObjectPrint,
cmdObjectSet,
cmdObjectValidate,
Expand All @@ -39,6 +41,9 @@ func init() {
cmdObjectEdit.AddCommand(
newCmdObjectEditConfig(kind),
)
cmdObjectInstance.AddCommand(
newCmdObjectInstanceLs(kind),
)
cmdObjectPrint.AddCommand(
cmdObjectPrintConfig,
newCmdObjectPrintStatus(kind),
Expand Down
5 changes: 5 additions & 0 deletions cmd/sec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ func init() {

cmdObject := newCmdSec()
cmdObjectEdit := newCmdObjectEdit(kind)
cmdObjectInstance := newCmdObjectInstance(kind)
cmdObjectSet := newCmdObjectSet(kind)
cmdObjectPrint := newCmdObjectPrint(kind)
cmdObjectPrintConfig := newCmdObjectPrintConfig(kind)
Expand All @@ -15,6 +16,7 @@ func init() {
)
cmdObject.AddCommand(
cmdObjectEdit,
cmdObjectInstance,
cmdObjectPrint,
cmdObjectSet,
cmdObjectValidate,
Expand All @@ -41,6 +43,9 @@ func init() {
cmdObjectEdit.AddCommand(
newCmdObjectEditConfig(kind),
)
cmdObjectInstance.AddCommand(
newCmdObjectInstanceLs(kind),
)
cmdObjectPrint.AddCommand(
cmdObjectPrintConfig,
newCmdObjectPrintStatus(kind),
Expand Down
5 changes: 5 additions & 0 deletions cmd/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func init() {
cmdObjectComplianceShow := newCmdObjectComplianceShow(kind)
cmdObjectComplianceList := newCmdObjectComplianceList(kind)
cmdObjectEdit := newCmdObjectEdit(kind)
cmdObjectInstance := newCmdObjectInstance(kind)
cmdObjectSet := newCmdObjectSet(kind)
cmdObjectPrint := newCmdObjectPrint(kind)
cmdObjectPrintConfig := newCmdObjectPrintConfig(kind)
Expand All @@ -26,6 +27,7 @@ func init() {
cmdObjectCollector,
cmdObjectCompliance,
cmdObjectEdit,
cmdObjectInstance,
cmdObjectPrint,
cmdObjectPush,
cmdObjectSet,
Expand Down Expand Up @@ -66,6 +68,9 @@ func init() {
cmdObjectEdit.AddCommand(
newCmdObjectEditConfig(kind),
)
cmdObjectInstance.AddCommand(
newCmdObjectInstanceLs(kind),
)
cmdObjectSet.AddCommand(
newCmdObjectSetProvisioned(kind),
newCmdObjectSetUnprovisioned(kind),
Expand Down
5 changes: 5 additions & 0 deletions cmd/usr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ func init() {

cmdObject := newCmdUsr()
cmdObjectEdit := newCmdObjectEdit(kind)
cmdObjectInstance := newCmdObjectInstance(kind)
cmdObjectSet := newCmdObjectSet(kind)
cmdObjectPrint := newCmdObjectPrint(kind)
cmdObjectPrintConfig := newCmdObjectPrintConfig(kind)
Expand All @@ -15,6 +16,7 @@ func init() {
)
cmdObject.AddCommand(
cmdObjectEdit,
cmdObjectInstance,
cmdObjectPrint,
cmdObjectSet,
cmdObjectValidate,
Expand All @@ -40,6 +42,9 @@ func init() {
cmdObjectEdit.AddCommand(
newCmdObjectEditConfig(kind),
)
cmdObjectInstance.AddCommand(
newCmdObjectInstanceLs(kind),
)
cmdObjectPrint.AddCommand(
cmdObjectPrintConfig,
newCmdObjectPrintStatus(kind),
Expand Down
5 changes: 5 additions & 0 deletions cmd/vol.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ func init() {
cmdObjectCollector := newCmdObjectCollector(kind)
cmdObjectCollectorTag := newCmdObjectCollectorTag(kind)
cmdObjectEdit := newCmdObjectEdit(kind)
cmdObjectInstance := newCmdObjectInstance(kind)
cmdObjectSet := newCmdObjectSet(kind)
cmdObjectPrint := newCmdObjectPrint(kind)
cmdObjectPrintConfig := newCmdObjectPrintConfig(kind)
Expand All @@ -20,6 +21,7 @@ func init() {
cmdObject.AddCommand(
cmdObjectCollector,
cmdObjectEdit,
cmdObjectInstance,
cmdObjectPrint,
cmdObjectPush,
cmdObjectSet,
Expand Down Expand Up @@ -70,6 +72,9 @@ func init() {
cmdObjectEdit.AddCommand(
newCmdObjectEditConfig(kind),
)
cmdObjectInstance.AddCommand(
newCmdObjectInstanceLs(kind),
)
cmdObjectSet.AddCommand(
newCmdObjectSetProvisioned(kind),
newCmdObjectSetUnprovisioned(kind),
Expand Down

0 comments on commit 640a4ae

Please sign in to comment.