From f03a9e5473bc191000e5d255bee0e33830339417 Mon Sep 17 00:00:00 2001 From: benPearce1 Date: Fri, 11 Oct 2024 10:22:21 +1000 Subject: [PATCH] correct help text in tenant variable commands --- pkg/cmd/tenant/variables/list/list.go | 4 ++-- pkg/cmd/tenant/variables/update/update.go | 6 +++--- pkg/cmd/tenant/variables/variables.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/cmd/tenant/variables/list/list.go b/pkg/cmd/tenant/variables/list/list.go index 8c92dd8b..6baf25b9 100644 --- a/pkg/cmd/tenant/variables/list/list.go +++ b/pkg/cmd/tenant/variables/list/list.go @@ -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 { diff --git a/pkg/cmd/tenant/variables/update/update.go b/pkg/cmd/tenant/variables/update/update.go index 5687bcac..a9c70325 100644 --- a/pkg/cmd/tenant/variables/update/update.go +++ b/pkg/cmd/tenant/variables/update/update.go @@ -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)) diff --git a/pkg/cmd/tenant/variables/variables.go b/pkg/cmd/tenant/variables/variables.go index 7f7646d4..39bdbc9b 100644 --- a/pkg/cmd/tenant/variables/variables.go +++ b/pkg/cmd/tenant/variables/variables.go @@ -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",