Skip to content

Commit

Permalink
fix: correct help text in tenant variable commands (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
benPearce1 authored Oct 11, 2024
1 parent cc16a75 commit e414d7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/tenant/variables/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func NewCmdList(f factory.Factory) *cobra.Command {
Short: "List tenant variables",
Long: "List tenant variables in Octopus Deploy",
Example: heredoc.Docf(`
$ %[1]s tenant variable list
$ %[1]s tenant variable ls
$ %[1]s tenant variables list "Bobs Wood Shop"
$ %[1]s tenant variables ls Tenant-123
`, constants.ExecutableName),
Aliases: []string{"ls"},
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/tenant/variables/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func NewCmdUpdate(f factory.Factory) *cobra.Command {
Short: "Update the value of a tenant variable",
Long: "Update the value of a tenant variable in Octopus Deploy",
Example: heredoc.Docf(`
$ %[1]s tenant variable update
$ %[1]s tenant variable update --tenant "Bobs Fish Shack" --name "site-name" --value "Bob's Fish Shack" --project "Awesome Web Site" --environment "Test"
$ %[1]s tenant variable update --tenant "Sally's Tackle Truck" --name dbPassword --value "12345" --library-variable-set "Shared Variables"
$ %[1]s tenant variables update
$ %[1]s tenant variables update --tenant "Bobs Fish Shack" --name "site-name" --value "Bob's Fish Shack" --project "Awesome Web Site" --environment "Test"
$ %[1]s tenant variables update --tenant "Sally's Tackle Truck" --name dbPassword --value "12345" --library-variable-set "Shared Variables"
`, constants.ExecutableName),
RunE: func(c *cobra.Command, args []string) error {
opts := NewUpdateOptions(updateFlags, cmd.NewDependencies(f, c))
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/tenant/variables/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ func NewCmdVariables(f factory.Factory) *cobra.Command {
Short: "Manage tenant variables",
Long: "Manage tenant variables in Octopus Deploy",
Example: heredoc.Docf(`
$ %[1]s tenant variables list --tenant "Bobs Wood Shop"
$ %[1]s tenant variables view --name "DatabaseName" --tenant "Bobs Wood Shop"
$ %[1]s tenant variables list "Bobs Wood Shop"
$ %[1]s tenant variables update --tenant "Bobs Fish Shack" --name "site-name" --value "Bob's Fish Shack" --project "Awesome Web Site" --environment "Test"
`, constants.ExecutableName),
Annotations: map[string]string{
annotations.IsCore: "true",
Expand Down

0 comments on commit e414d7f

Please sign in to comment.