Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable/enable tenant command docs #448

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading