Skip to content

Commit

Permalink
OCM-7811 | fix: hide attach and detach commands
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleerh committed Apr 30, 2024
1 parent 09ec783 commit ea30075
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
9 changes: 5 additions & 4 deletions cmd/attach/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ import (

func NewRosaAttachCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "attach",
Short: "Attach AWS resource",
Long: "Attach AWS resource",
Args: cobra.NoArgs,
Use: "attach",
Short: "Attach AWS resource",
Long: "Attach AWS resource",
Hidden: true,
Args: cobra.NoArgs,
}
cmd.AddCommand(policy.NewAttachPolicyCommand())
return cmd
Expand Down
1 change: 1 addition & 0 deletions cmd/attach/policy/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func NewAttachPolicyCommand() *cobra.Command {
Short: short,
Long: long,
Example: example,
Hidden: true,
Args: cobra.NoArgs,
Run: rosa.DefaultRunner(rosa.RuntimeWithOCMAndAWS(), AttachPolicyRunner(&options)),
}
Expand Down
9 changes: 5 additions & 4 deletions cmd/detach/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ import (

func NewRosaDetachCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "detach",
Short: "Detach AWS resource",
Long: "Detach AWS resource",
Args: cobra.NoArgs,
Use: "detach",
Short: "Detach AWS resource",
Long: "Detach AWS resource",
Hidden: true,
Args: cobra.NoArgs,
}
cmd.AddCommand(policy.NewDetachPolicyCommand())
return cmd
Expand Down
1 change: 1 addition & 0 deletions cmd/detach/policy/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func NewDetachPolicyCommand() *cobra.Command {
Short: short,
Long: long,
Example: example,
Hidden: true,
Args: cobra.NoArgs,
Run: rosa.DefaultRunner(rosa.RuntimeWithOCMAndAWS(), DetachPolicyRunner(&options)),
}
Expand Down

0 comments on commit ea30075

Please sign in to comment.