Skip to content

Commit

Permalink
fix: disable/enable tenant command docs (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
grace-rehn authored Nov 20, 2024
1 parent 8355ba7 commit c5222b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions pkg/cmd/tenant/disable/disable.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ func NewDisableOptions(args []string, dependencies *cmd.Dependencies) *DisableOp

func NewCmdDisable(f factory.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "disable",
Short: "Disable a tenant",
Long: "Disable a tenant in Octopus Deploy",
Example: heredoc.Docf("$ %[1]s tenant enable", constants.ExecutableName),
Use: "disable {<name> | <id>}",
Short: "Disable a tenant",
Long: "Disable a tenant in Octopus Deploy",
Example: heredoc.Docf(`
$ %[1]s disable view Tenants-1
$ %[1]s disable view 'Tenant'
`, constants.ExecutableName),
RunE: func(c *cobra.Command, args []string) error {
if len(args) == 0 {
args = append(args, "")
Expand Down
11 changes: 7 additions & 4 deletions pkg/cmd/tenant/enable/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ func NewEnableOptions(args []string, dependencies *cmd.Dependencies) *EnableOpti

func NewCmdEnable(f factory.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "enable",
Short: "Enable a tenant",
Long: "Enable a tenant in Octopus Deploy",
Example: heredoc.Docf("$ %[1]s tenant enable", constants.ExecutableName),
Use: "enable {<name> | <id>}",
Short: "Enable a tenant",
Long: "Enable a tenant in Octopus Deploy",
Example: heredoc.Docf(`
$ %[1]s tenant enable Tenants-1
$ %[1]s tenant enable 'Tenant'
`, constants.ExecutableName),
RunE: func(c *cobra.Command, args []string) error {
if len(args) == 0 {
args = append(args, "")
Expand Down

0 comments on commit c5222b5

Please sign in to comment.