diff --git a/CHANGELOG.md b/CHANGELOG.md index a9e02e769..3054398da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Bug Fixes: +- fix(text): send deprecation warnings to stderr instead of stdout ((#1782)[https://github.com/fastly/cli/pull/1782]) + ### Enhancements: ### Dependencies: diff --git a/pkg/commands/alias/acl/create.go b/pkg/commands/alias/acl/create.go index 8526d27ac..c918b8e34 100644 --- a/pkg/commands/alias/acl/create.go +++ b/pkg/commands/alias/acl/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service acl create' command instead.") + text.Deprecated("Use the 'service acl create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/acl/delete.go b/pkg/commands/alias/acl/delete.go index 631f7897f..77f534ed4 100644 --- a/pkg/commands/alias/acl/delete.go +++ b/pkg/commands/alias/acl/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service acl delete' command instead.") + text.Deprecated("Use the 'service acl delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/acl/describe.go b/pkg/commands/alias/acl/describe.go index 56990f6dd..4c7a04b60 100644 --- a/pkg/commands/alias/acl/describe.go +++ b/pkg/commands/alias/acl/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service acl describe' command instead.") + text.Deprecated("Use the 'service acl describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/acl/list.go b/pkg/commands/alias/acl/list.go index a0acc2d3f..0131e9d7b 100644 --- a/pkg/commands/alias/acl/list.go +++ b/pkg/commands/alias/acl/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service acl list' command instead.") + text.Deprecated("Use the 'service acl list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/acl/update.go b/pkg/commands/alias/acl/update.go index 37b4d692b..4b4f6aa01 100644 --- a/pkg/commands/alias/acl/update.go +++ b/pkg/commands/alias/acl/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service acl update' command instead.") + text.Deprecated("Use the 'service acl update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/aclentry/create.go b/pkg/commands/alias/aclentry/create.go index d58f2ef75..087e4c07f 100644 --- a/pkg/commands/alias/aclentry/create.go +++ b/pkg/commands/alias/aclentry/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service aclentry create' command instead.") + text.Deprecated("Use the 'service aclentry create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/aclentry/delete.go b/pkg/commands/alias/aclentry/delete.go index 735b52893..f8665f993 100644 --- a/pkg/commands/alias/aclentry/delete.go +++ b/pkg/commands/alias/aclentry/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service aclentry delete' command instead.") + text.Deprecated("Use the 'service aclentry delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/aclentry/describe.go b/pkg/commands/alias/aclentry/describe.go index 5d24bce3d..5d3c69d69 100644 --- a/pkg/commands/alias/aclentry/describe.go +++ b/pkg/commands/alias/aclentry/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service aclentry describe' command instead.") + text.Deprecated("Use the 'service aclentry describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/aclentry/list.go b/pkg/commands/alias/aclentry/list.go index d1229c23a..792e7e9eb 100644 --- a/pkg/commands/alias/aclentry/list.go +++ b/pkg/commands/alias/aclentry/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service aclentry list' command instead.") + text.Deprecated("Use the 'service aclentry list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/aclentry/update.go b/pkg/commands/alias/aclentry/update.go index 66b1507b1..c5ae1ce8c 100644 --- a/pkg/commands/alias/aclentry/update.go +++ b/pkg/commands/alias/aclentry/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service aclentry update' command instead.") + text.Deprecated("Use the 'service aclentry update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/alerts/create.go b/pkg/commands/alias/alerts/create.go index e8695639c..41097dde4 100644 --- a/pkg/commands/alias/alerts/create.go +++ b/pkg/commands/alias/alerts/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service alert create' command instead.") + text.Deprecated("Use the 'service alert create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/alerts/delete.go b/pkg/commands/alias/alerts/delete.go index 39cacc8ef..71651c473 100644 --- a/pkg/commands/alias/alerts/delete.go +++ b/pkg/commands/alias/alerts/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service alert delete' command instead.") + text.Deprecated("Use the 'service alert delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/alerts/describe.go b/pkg/commands/alias/alerts/describe.go index 9346dfc95..cb819a9f5 100644 --- a/pkg/commands/alias/alerts/describe.go +++ b/pkg/commands/alias/alerts/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service alert describe' command instead.") + text.Deprecated("Use the 'service alert describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/alerts/history.go b/pkg/commands/alias/alerts/history.go index a16f9de1d..b0a6cc67a 100644 --- a/pkg/commands/alias/alerts/history.go +++ b/pkg/commands/alias/alerts/history.go @@ -25,7 +25,7 @@ func NewListHistoryCommand(parent argparser.Registerer, g *global.Data) *ListHis // Exec implements the command interface. func (c *ListHistoryCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service alert list history' command instead.") + text.Deprecated("Use the 'service alert list history' command instead.") } return c.ListHistoryCommand.Exec(in, out) } diff --git a/pkg/commands/alias/alerts/list.go b/pkg/commands/alias/alerts/list.go index 0bfee3224..6c989b414 100644 --- a/pkg/commands/alias/alerts/list.go +++ b/pkg/commands/alias/alerts/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service alert list' command instead.") + text.Deprecated("Use the 'service alert list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/alerts/update.go b/pkg/commands/alias/alerts/update.go index a616e9e78..7573d0f10 100644 --- a/pkg/commands/alias/alerts/update.go +++ b/pkg/commands/alias/alerts/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service alert update' command instead.") + text.Deprecated("Use the 'service alert update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/backend/create.go b/pkg/commands/alias/backend/create.go index 76d1091f8..01236aa12 100644 --- a/pkg/commands/alias/backend/create.go +++ b/pkg/commands/alias/backend/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service backend create' command instead.") + text.Deprecated("Use the 'service backend create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/backend/delete.go b/pkg/commands/alias/backend/delete.go index 746e8d2c7..1941f7efb 100644 --- a/pkg/commands/alias/backend/delete.go +++ b/pkg/commands/alias/backend/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service backend delete' command instead.") + text.Deprecated("Use the 'service backend delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/backend/describe.go b/pkg/commands/alias/backend/describe.go index 6e4cbde15..f8b1f2ad1 100644 --- a/pkg/commands/alias/backend/describe.go +++ b/pkg/commands/alias/backend/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service backend describe' command instead.") + text.Deprecated("Use the 'service backend describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/backend/list.go b/pkg/commands/alias/backend/list.go index 84ae255ce..a71bb8cec 100644 --- a/pkg/commands/alias/backend/list.go +++ b/pkg/commands/alias/backend/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service backend list' command instead.") + text.Deprecated("Use the 'service backend list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/backend/update.go b/pkg/commands/alias/backend/update.go index fab7bae56..55ab0af97 100644 --- a/pkg/commands/alias/backend/update.go +++ b/pkg/commands/alias/backend/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service backend update' command instead.") + text.Deprecated("Use the 'service backend update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionary/create.go b/pkg/commands/alias/dictionary/create.go index 1d606fc49..057ef732b 100644 --- a/pkg/commands/alias/dictionary/create.go +++ b/pkg/commands/alias/dictionary/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service dictionary create' command instead.") + text.Deprecated("Use the 'service dictionary create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionary/delete.go b/pkg/commands/alias/dictionary/delete.go index 49005eb60..6574498a0 100644 --- a/pkg/commands/alias/dictionary/delete.go +++ b/pkg/commands/alias/dictionary/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service dictionary delete' command instead.") + text.Deprecated("Use the 'service dictionary delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionary/describe.go b/pkg/commands/alias/dictionary/describe.go index 0166f9f5e..b8d7e2ed9 100644 --- a/pkg/commands/alias/dictionary/describe.go +++ b/pkg/commands/alias/dictionary/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service dictionary describe' command instead.") + text.Deprecated("Use the 'service dictionary describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionary/list.go b/pkg/commands/alias/dictionary/list.go index 42a74af64..7c826e26b 100644 --- a/pkg/commands/alias/dictionary/list.go +++ b/pkg/commands/alias/dictionary/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service dictionary list' command instead.") + text.Deprecated("Use the 'service dictionary list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionary/update.go b/pkg/commands/alias/dictionary/update.go index 9f8ec27c7..8306045c4 100644 --- a/pkg/commands/alias/dictionary/update.go +++ b/pkg/commands/alias/dictionary/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service dictionary update' command instead.") + text.Deprecated("Use the 'service dictionary update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionaryentry/create.go b/pkg/commands/alias/dictionaryentry/create.go index 97ad644a5..b319984a5 100644 --- a/pkg/commands/alias/dictionaryentry/create.go +++ b/pkg/commands/alias/dictionaryentry/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service dictionary-entry create' command instead.") + text.Deprecated("Use the 'service dictionary-entry create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionaryentry/delete.go b/pkg/commands/alias/dictionaryentry/delete.go index dc34c1266..91e25d368 100644 --- a/pkg/commands/alias/dictionaryentry/delete.go +++ b/pkg/commands/alias/dictionaryentry/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service dictionary-entry delete' command instead.") + text.Deprecated("Use the 'service dictionary-entry delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionaryentry/describe.go b/pkg/commands/alias/dictionaryentry/describe.go index 89d5ddca2..d8eff2407 100644 --- a/pkg/commands/alias/dictionaryentry/describe.go +++ b/pkg/commands/alias/dictionaryentry/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service dictionary-entry describe' command instead.") + text.Deprecated("Use the 'service dictionary-entry describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionaryentry/list.go b/pkg/commands/alias/dictionaryentry/list.go index 1bb55056b..2c5b736f5 100644 --- a/pkg/commands/alias/dictionaryentry/list.go +++ b/pkg/commands/alias/dictionaryentry/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service dictionary-entry list' command instead.") + text.Deprecated("Use the 'service dictionary-entry list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/dictionaryentry/update.go b/pkg/commands/alias/dictionaryentry/update.go index 1c7ff06d3..e68ef144e 100644 --- a/pkg/commands/alias/dictionaryentry/update.go +++ b/pkg/commands/alias/dictionaryentry/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service dictionary-entry update' command instead.") + text.Deprecated("Use the 'service dictionary-entry update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/healthcheck/create.go b/pkg/commands/alias/healthcheck/create.go index c43ff1b41..852d00ef3 100644 --- a/pkg/commands/alias/healthcheck/create.go +++ b/pkg/commands/alias/healthcheck/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service healthcheck create' command instead.") + text.Deprecated("Use the 'service healthcheck create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/healthcheck/delete.go b/pkg/commands/alias/healthcheck/delete.go index 1b712672e..a8b0e7f31 100644 --- a/pkg/commands/alias/healthcheck/delete.go +++ b/pkg/commands/alias/healthcheck/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service healthcheck delete' command instead.") + text.Deprecated("Use the 'service healthcheck delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/healthcheck/describe.go b/pkg/commands/alias/healthcheck/describe.go index 6e27ea16a..2cdfd8943 100644 --- a/pkg/commands/alias/healthcheck/describe.go +++ b/pkg/commands/alias/healthcheck/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service healthcheck describe' command instead.") + text.Deprecated("Use the 'service healthcheck describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/healthcheck/list.go b/pkg/commands/alias/healthcheck/list.go index f6f20ffa8..7845898a5 100644 --- a/pkg/commands/alias/healthcheck/list.go +++ b/pkg/commands/alias/healthcheck/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service healthcheck list' command instead.") + text.Deprecated("Use the 'service healthcheck list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/healthcheck/update.go b/pkg/commands/alias/healthcheck/update.go index e0f8702b6..d7bdbf713 100644 --- a/pkg/commands/alias/healthcheck/update.go +++ b/pkg/commands/alias/healthcheck/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service healthcheck update' command instead.") + text.Deprecated("Use the 'service healthcheck update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/imageoptimizerdefaults/get.go b/pkg/commands/alias/imageoptimizerdefaults/get.go index cf73df0de..75af29775 100644 --- a/pkg/commands/alias/imageoptimizerdefaults/get.go +++ b/pkg/commands/alias/imageoptimizerdefaults/get.go @@ -24,6 +24,6 @@ func NewGetCommand(parent argparser.Registerer, g *global.Data) *GetCommand { // Exec implements the command interface. func (c *GetCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service imageoptimizerdefaults get' command instead.") + text.Deprecated("Use the 'service imageoptimizerdefaults get' command instead.") return c.GetCommand.Exec(in, out) } diff --git a/pkg/commands/alias/imageoptimizerdefaults/update.go b/pkg/commands/alias/imageoptimizerdefaults/update.go index a820e6af8..cb2fcdc3f 100644 --- a/pkg/commands/alias/imageoptimizerdefaults/update.go +++ b/pkg/commands/alias/imageoptimizerdefaults/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service imageoptimizerdefaults update' command instead.") + text.Deprecated("Use the 'service imageoptimizerdefaults update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/azureblob/create.go b/pkg/commands/alias/logging/azureblob/create.go index 7aae020b1..0b543e007 100644 --- a/pkg/commands/alias/logging/azureblob/create.go +++ b/pkg/commands/alias/logging/azureblob/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging azureblob create' command instead.") + text.Deprecated("Use the 'service logging azureblob create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/azureblob/delete.go b/pkg/commands/alias/logging/azureblob/delete.go index 1fdfdbf50..5b53f230e 100644 --- a/pkg/commands/alias/logging/azureblob/delete.go +++ b/pkg/commands/alias/logging/azureblob/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging azureblob delete' command instead.") + text.Deprecated("Use the 'service logging azureblob delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/azureblob/describe.go b/pkg/commands/alias/logging/azureblob/describe.go index d997ce539..01b407970 100644 --- a/pkg/commands/alias/logging/azureblob/describe.go +++ b/pkg/commands/alias/logging/azureblob/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging azureblob describe' command instead.") + text.Deprecated("Use the 'service logging azureblob describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/azureblob/list.go b/pkg/commands/alias/logging/azureblob/list.go index fa57bbc42..fdd137b34 100644 --- a/pkg/commands/alias/logging/azureblob/list.go +++ b/pkg/commands/alias/logging/azureblob/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging azureblob list' command instead.") + text.Deprecated("Use the 'service logging azureblob list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/azureblob/update.go b/pkg/commands/alias/logging/azureblob/update.go index aa8042c02..7a154ec3f 100644 --- a/pkg/commands/alias/logging/azureblob/update.go +++ b/pkg/commands/alias/logging/azureblob/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging azureblob update' command instead.") + text.Deprecated("Use the 'service logging azureblob update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/bigquery/create.go b/pkg/commands/alias/logging/bigquery/create.go index b13cdcb15..6f88bec9b 100644 --- a/pkg/commands/alias/logging/bigquery/create.go +++ b/pkg/commands/alias/logging/bigquery/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging bigquery create' command instead.") + text.Deprecated("Use the 'service logging bigquery create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/bigquery/delete.go b/pkg/commands/alias/logging/bigquery/delete.go index 095e29e24..f7eea084a 100644 --- a/pkg/commands/alias/logging/bigquery/delete.go +++ b/pkg/commands/alias/logging/bigquery/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging bigquery delete' command instead.") + text.Deprecated("Use the 'service logging bigquery delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/bigquery/describe.go b/pkg/commands/alias/logging/bigquery/describe.go index 381e31462..3aa6d3b8f 100644 --- a/pkg/commands/alias/logging/bigquery/describe.go +++ b/pkg/commands/alias/logging/bigquery/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging bigquery describe' command instead.") + text.Deprecated("Use the 'service logging bigquery describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/bigquery/list.go b/pkg/commands/alias/logging/bigquery/list.go index 1d6148657..e20017ba1 100644 --- a/pkg/commands/alias/logging/bigquery/list.go +++ b/pkg/commands/alias/logging/bigquery/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging bigquery list' command instead.") + text.Deprecated("Use the 'service logging bigquery list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/bigquery/update.go b/pkg/commands/alias/logging/bigquery/update.go index 6a0ff19d9..4fdd6ae6a 100644 --- a/pkg/commands/alias/logging/bigquery/update.go +++ b/pkg/commands/alias/logging/bigquery/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging bigquery update' command instead.") + text.Deprecated("Use the 'service logging bigquery update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/cloudfiles/create.go b/pkg/commands/alias/logging/cloudfiles/create.go index 033296ef1..47f1620be 100644 --- a/pkg/commands/alias/logging/cloudfiles/create.go +++ b/pkg/commands/alias/logging/cloudfiles/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging cloudfiles create' command instead.") + text.Deprecated("Use the 'service logging cloudfiles create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/cloudfiles/delete.go b/pkg/commands/alias/logging/cloudfiles/delete.go index 0fe4cd7b6..3280a7d6b 100644 --- a/pkg/commands/alias/logging/cloudfiles/delete.go +++ b/pkg/commands/alias/logging/cloudfiles/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging cloudfiles delete' command instead.") + text.Deprecated("Use the 'service logging cloudfiles delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/cloudfiles/describe.go b/pkg/commands/alias/logging/cloudfiles/describe.go index e195ca63e..ab3ee8f78 100644 --- a/pkg/commands/alias/logging/cloudfiles/describe.go +++ b/pkg/commands/alias/logging/cloudfiles/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging cloudfiles describe' command instead.") + text.Deprecated("Use the 'service logging cloudfiles describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/cloudfiles/list.go b/pkg/commands/alias/logging/cloudfiles/list.go index fa8160ce5..fd3f09092 100644 --- a/pkg/commands/alias/logging/cloudfiles/list.go +++ b/pkg/commands/alias/logging/cloudfiles/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging cloudfiles list' command instead.") + text.Deprecated("Use the 'service logging cloudfiles list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/cloudfiles/update.go b/pkg/commands/alias/logging/cloudfiles/update.go index 2ab785e59..81246f5fd 100644 --- a/pkg/commands/alias/logging/cloudfiles/update.go +++ b/pkg/commands/alias/logging/cloudfiles/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging cloudfiles update' command instead.") + text.Deprecated("Use the 'service logging cloudfiles update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/datadog/create.go b/pkg/commands/alias/logging/datadog/create.go index 39cdea6c8..e320ae858 100644 --- a/pkg/commands/alias/logging/datadog/create.go +++ b/pkg/commands/alias/logging/datadog/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging datadog create' command instead.") + text.Deprecated("Use the 'service logging datadog create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/datadog/delete.go b/pkg/commands/alias/logging/datadog/delete.go index d7e9cb494..9ffb80932 100644 --- a/pkg/commands/alias/logging/datadog/delete.go +++ b/pkg/commands/alias/logging/datadog/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging datadog delete' command instead.") + text.Deprecated("Use the 'service logging datadog delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/datadog/describe.go b/pkg/commands/alias/logging/datadog/describe.go index 80964e2c7..fb6d07916 100644 --- a/pkg/commands/alias/logging/datadog/describe.go +++ b/pkg/commands/alias/logging/datadog/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging datadog describe' command instead.") + text.Deprecated("Use the 'service logging datadog describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/datadog/list.go b/pkg/commands/alias/logging/datadog/list.go index 442838b22..34ebd0b79 100644 --- a/pkg/commands/alias/logging/datadog/list.go +++ b/pkg/commands/alias/logging/datadog/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging datadog list' command instead.") + text.Deprecated("Use the 'service logging datadog list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/datadog/update.go b/pkg/commands/alias/logging/datadog/update.go index d8e1fa4e7..b1e30fd31 100644 --- a/pkg/commands/alias/logging/datadog/update.go +++ b/pkg/commands/alias/logging/datadog/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging datadog update' command instead.") + text.Deprecated("Use the 'service logging datadog update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/digitalocean/create.go b/pkg/commands/alias/logging/digitalocean/create.go index 631f0748e..4b26607a5 100644 --- a/pkg/commands/alias/logging/digitalocean/create.go +++ b/pkg/commands/alias/logging/digitalocean/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging digitalocean create' command instead.") + text.Deprecated("Use the 'service logging digitalocean create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/digitalocean/delete.go b/pkg/commands/alias/logging/digitalocean/delete.go index 9ea878bc8..1668d5859 100644 --- a/pkg/commands/alias/logging/digitalocean/delete.go +++ b/pkg/commands/alias/logging/digitalocean/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging digitalocean delete' command instead.") + text.Deprecated("Use the 'service logging digitalocean delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/digitalocean/describe.go b/pkg/commands/alias/logging/digitalocean/describe.go index 223fbb5b7..92a425021 100644 --- a/pkg/commands/alias/logging/digitalocean/describe.go +++ b/pkg/commands/alias/logging/digitalocean/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging digitalocean describe' command instead.") + text.Deprecated("Use the 'service logging digitalocean describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/digitalocean/list.go b/pkg/commands/alias/logging/digitalocean/list.go index 0af68ebf3..69b953a42 100644 --- a/pkg/commands/alias/logging/digitalocean/list.go +++ b/pkg/commands/alias/logging/digitalocean/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging digitalocean list' command instead.") + text.Deprecated("Use the 'service logging digitalocean list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/digitalocean/update.go b/pkg/commands/alias/logging/digitalocean/update.go index 70bdf1fdb..2dd9aab52 100644 --- a/pkg/commands/alias/logging/digitalocean/update.go +++ b/pkg/commands/alias/logging/digitalocean/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging digitalocean update' command instead.") + text.Deprecated("Use the 'service logging digitalocean update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/elasticsearch/create.go b/pkg/commands/alias/logging/elasticsearch/create.go index 4cfa6f445..c4bb4eef3 100644 --- a/pkg/commands/alias/logging/elasticsearch/create.go +++ b/pkg/commands/alias/logging/elasticsearch/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging elasticsearch create' command instead.") + text.Deprecated("Use the 'service logging elasticsearch create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/elasticsearch/delete.go b/pkg/commands/alias/logging/elasticsearch/delete.go index e1246bf87..c9b942c4b 100644 --- a/pkg/commands/alias/logging/elasticsearch/delete.go +++ b/pkg/commands/alias/logging/elasticsearch/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging elasticsearch delete' command instead.") + text.Deprecated("Use the 'service logging elasticsearch delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/elasticsearch/describe.go b/pkg/commands/alias/logging/elasticsearch/describe.go index e7e7a31a9..1876f6971 100644 --- a/pkg/commands/alias/logging/elasticsearch/describe.go +++ b/pkg/commands/alias/logging/elasticsearch/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging elasticsearch describe' command instead.") + text.Deprecated("Use the 'service logging elasticsearch describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/elasticsearch/list.go b/pkg/commands/alias/logging/elasticsearch/list.go index a680b00ec..688af8f82 100644 --- a/pkg/commands/alias/logging/elasticsearch/list.go +++ b/pkg/commands/alias/logging/elasticsearch/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging elasticsearch list' command instead.") + text.Deprecated("Use the 'service logging elasticsearch list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/elasticsearch/update.go b/pkg/commands/alias/logging/elasticsearch/update.go index 765e390d1..8f96491a0 100644 --- a/pkg/commands/alias/logging/elasticsearch/update.go +++ b/pkg/commands/alias/logging/elasticsearch/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging elasticsearch update' command instead.") + text.Deprecated("Use the 'service logging elasticsearch update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/ftp/create.go b/pkg/commands/alias/logging/ftp/create.go index e923ddc41..ec93d5d2e 100644 --- a/pkg/commands/alias/logging/ftp/create.go +++ b/pkg/commands/alias/logging/ftp/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging ftp create' command instead.") + text.Deprecated("Use the 'service logging ftp create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/ftp/delete.go b/pkg/commands/alias/logging/ftp/delete.go index 4b92d6739..f6d5028ba 100644 --- a/pkg/commands/alias/logging/ftp/delete.go +++ b/pkg/commands/alias/logging/ftp/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging ftp delete' command instead.") + text.Deprecated("Use the 'service logging ftp delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/ftp/describe.go b/pkg/commands/alias/logging/ftp/describe.go index a4a9b295d..c771fa977 100644 --- a/pkg/commands/alias/logging/ftp/describe.go +++ b/pkg/commands/alias/logging/ftp/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging ftp describe' command instead.") + text.Deprecated("Use the 'service logging ftp describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/ftp/list.go b/pkg/commands/alias/logging/ftp/list.go index 964c4ce1f..e9f9a43a6 100644 --- a/pkg/commands/alias/logging/ftp/list.go +++ b/pkg/commands/alias/logging/ftp/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging ftp list' command instead.") + text.Deprecated("Use the 'service logging ftp list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/ftp/update.go b/pkg/commands/alias/logging/ftp/update.go index 427f361d1..61a7cb23c 100644 --- a/pkg/commands/alias/logging/ftp/update.go +++ b/pkg/commands/alias/logging/ftp/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging ftp update' command instead.") + text.Deprecated("Use the 'service logging ftp update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/gcs/create.go b/pkg/commands/alias/logging/gcs/create.go index 8925d8bd9..56f124a2b 100644 --- a/pkg/commands/alias/logging/gcs/create.go +++ b/pkg/commands/alias/logging/gcs/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging gcs create' command instead.") + text.Deprecated("Use the 'service logging gcs create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/gcs/delete.go b/pkg/commands/alias/logging/gcs/delete.go index 72c4a80f5..c802cd15d 100644 --- a/pkg/commands/alias/logging/gcs/delete.go +++ b/pkg/commands/alias/logging/gcs/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging gcs delete' command instead.") + text.Deprecated("Use the 'service logging gcs delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/gcs/describe.go b/pkg/commands/alias/logging/gcs/describe.go index c4fcef65c..cd1b2c34a 100644 --- a/pkg/commands/alias/logging/gcs/describe.go +++ b/pkg/commands/alias/logging/gcs/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging gcs describe' command instead.") + text.Deprecated("Use the 'service logging gcs describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/gcs/list.go b/pkg/commands/alias/logging/gcs/list.go index beef87e86..3652f9603 100644 --- a/pkg/commands/alias/logging/gcs/list.go +++ b/pkg/commands/alias/logging/gcs/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging gcs list' command instead.") + text.Deprecated("Use the 'service logging gcs list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/gcs/update.go b/pkg/commands/alias/logging/gcs/update.go index 508531589..89571b5b7 100644 --- a/pkg/commands/alias/logging/gcs/update.go +++ b/pkg/commands/alias/logging/gcs/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging gcs update' command instead.") + text.Deprecated("Use the 'service logging gcs update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/googlepubsub/create.go b/pkg/commands/alias/logging/googlepubsub/create.go index 81159ae00..db0861f14 100644 --- a/pkg/commands/alias/logging/googlepubsub/create.go +++ b/pkg/commands/alias/logging/googlepubsub/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging googlepubsub create' command instead.") + text.Deprecated("Use the 'service logging googlepubsub create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/googlepubsub/delete.go b/pkg/commands/alias/logging/googlepubsub/delete.go index c70ef3766..44a40fa4f 100644 --- a/pkg/commands/alias/logging/googlepubsub/delete.go +++ b/pkg/commands/alias/logging/googlepubsub/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging googlepubsub delete' command instead.") + text.Deprecated("Use the 'service logging googlepubsub delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/googlepubsub/describe.go b/pkg/commands/alias/logging/googlepubsub/describe.go index cc6509a46..8ae6c27e3 100644 --- a/pkg/commands/alias/logging/googlepubsub/describe.go +++ b/pkg/commands/alias/logging/googlepubsub/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging googlepubsub describe' command instead.") + text.Deprecated("Use the 'service logging googlepubsub describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/googlepubsub/list.go b/pkg/commands/alias/logging/googlepubsub/list.go index 8f99c8670..5fad35a68 100644 --- a/pkg/commands/alias/logging/googlepubsub/list.go +++ b/pkg/commands/alias/logging/googlepubsub/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging googlepubsub list' command instead.") + text.Deprecated("Use the 'service logging googlepubsub list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/googlepubsub/update.go b/pkg/commands/alias/logging/googlepubsub/update.go index f77c55d4d..a925b0710 100644 --- a/pkg/commands/alias/logging/googlepubsub/update.go +++ b/pkg/commands/alias/logging/googlepubsub/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging googlepubsub update' command instead.") + text.Deprecated("Use the 'service logging googlepubsub update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/grafanacloudlogs/create.go b/pkg/commands/alias/logging/grafanacloudlogs/create.go index 3ee111109..38953185d 100644 --- a/pkg/commands/alias/logging/grafanacloudlogs/create.go +++ b/pkg/commands/alias/logging/grafanacloudlogs/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging grafanacloudlogs create' command instead.") + text.Deprecated("Use the 'service logging grafanacloudlogs create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/grafanacloudlogs/delete.go b/pkg/commands/alias/logging/grafanacloudlogs/delete.go index b688d4c47..a66588aa8 100644 --- a/pkg/commands/alias/logging/grafanacloudlogs/delete.go +++ b/pkg/commands/alias/logging/grafanacloudlogs/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging grafanacloudlogs delete' command instead.") + text.Deprecated("Use the 'service logging grafanacloudlogs delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/grafanacloudlogs/describe.go b/pkg/commands/alias/logging/grafanacloudlogs/describe.go index 1fa16ae5b..ddf980394 100644 --- a/pkg/commands/alias/logging/grafanacloudlogs/describe.go +++ b/pkg/commands/alias/logging/grafanacloudlogs/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging grafanacloudlogs describe' command instead.") + text.Deprecated("Use the 'service logging grafanacloudlogs describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/grafanacloudlogs/list.go b/pkg/commands/alias/logging/grafanacloudlogs/list.go index a4b38dce2..12f7d1a57 100644 --- a/pkg/commands/alias/logging/grafanacloudlogs/list.go +++ b/pkg/commands/alias/logging/grafanacloudlogs/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging grafanacloudlogs list' command instead.") + text.Deprecated("Use the 'service logging grafanacloudlogs list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/grafanacloudlogs/update.go b/pkg/commands/alias/logging/grafanacloudlogs/update.go index 3d65a592c..c0cb31751 100644 --- a/pkg/commands/alias/logging/grafanacloudlogs/update.go +++ b/pkg/commands/alias/logging/grafanacloudlogs/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging grafanacloudlogs update' command instead.") + text.Deprecated("Use the 'service logging grafanacloudlogs update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/heroku/create.go b/pkg/commands/alias/logging/heroku/create.go index 2f1f7234f..c779b10b8 100644 --- a/pkg/commands/alias/logging/heroku/create.go +++ b/pkg/commands/alias/logging/heroku/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging heroku create' command instead.") + text.Deprecated("Use the 'service logging heroku create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/heroku/delete.go b/pkg/commands/alias/logging/heroku/delete.go index adaf41357..f5fdf3491 100644 --- a/pkg/commands/alias/logging/heroku/delete.go +++ b/pkg/commands/alias/logging/heroku/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging heroku delete' command instead.") + text.Deprecated("Use the 'service logging heroku delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/heroku/describe.go b/pkg/commands/alias/logging/heroku/describe.go index d2c46c737..44a562b0c 100644 --- a/pkg/commands/alias/logging/heroku/describe.go +++ b/pkg/commands/alias/logging/heroku/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging heroku describe' command instead.") + text.Deprecated("Use the 'service logging heroku describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/heroku/list.go b/pkg/commands/alias/logging/heroku/list.go index bf270a948..d7d697754 100644 --- a/pkg/commands/alias/logging/heroku/list.go +++ b/pkg/commands/alias/logging/heroku/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging heroku list' command instead.") + text.Deprecated("Use the 'service logging heroku list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/heroku/update.go b/pkg/commands/alias/logging/heroku/update.go index a9786cd84..5c06c2796 100644 --- a/pkg/commands/alias/logging/heroku/update.go +++ b/pkg/commands/alias/logging/heroku/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging heroku update' command instead.") + text.Deprecated("Use the 'service logging heroku update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/honeycomb/create.go b/pkg/commands/alias/logging/honeycomb/create.go index f479457ec..e30aeebbf 100644 --- a/pkg/commands/alias/logging/honeycomb/create.go +++ b/pkg/commands/alias/logging/honeycomb/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging honeycomb create' command instead.") + text.Deprecated("Use the 'service logging honeycomb create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/honeycomb/delete.go b/pkg/commands/alias/logging/honeycomb/delete.go index b22cc3f0c..70c6f6b8f 100644 --- a/pkg/commands/alias/logging/honeycomb/delete.go +++ b/pkg/commands/alias/logging/honeycomb/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging honeycomb delete' command instead.") + text.Deprecated("Use the 'service logging honeycomb delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/honeycomb/describe.go b/pkg/commands/alias/logging/honeycomb/describe.go index 28dfdc255..538d10845 100644 --- a/pkg/commands/alias/logging/honeycomb/describe.go +++ b/pkg/commands/alias/logging/honeycomb/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging honeycomb describe' command instead.") + text.Deprecated("Use the 'service logging honeycomb describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/honeycomb/list.go b/pkg/commands/alias/logging/honeycomb/list.go index 82f135eb8..daeef1748 100644 --- a/pkg/commands/alias/logging/honeycomb/list.go +++ b/pkg/commands/alias/logging/honeycomb/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging honeycomb list' command instead.") + text.Deprecated("Use the 'service logging honeycomb list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/honeycomb/update.go b/pkg/commands/alias/logging/honeycomb/update.go index 204ca0244..f5d587ad2 100644 --- a/pkg/commands/alias/logging/honeycomb/update.go +++ b/pkg/commands/alias/logging/honeycomb/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging honeycomb update' command instead.") + text.Deprecated("Use the 'service logging honeycomb update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/https/create.go b/pkg/commands/alias/logging/https/create.go index e8568ea5d..9e3a8a4db 100644 --- a/pkg/commands/alias/logging/https/create.go +++ b/pkg/commands/alias/logging/https/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging https create' command instead.") + text.Deprecated("Use the 'service logging https create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/https/delete.go b/pkg/commands/alias/logging/https/delete.go index 6b578db13..e23351e7d 100644 --- a/pkg/commands/alias/logging/https/delete.go +++ b/pkg/commands/alias/logging/https/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging https delete' command instead.") + text.Deprecated("Use the 'service logging https delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/https/describe.go b/pkg/commands/alias/logging/https/describe.go index 947181583..5dc4d22bf 100644 --- a/pkg/commands/alias/logging/https/describe.go +++ b/pkg/commands/alias/logging/https/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging https describe' command instead.") + text.Deprecated("Use the 'service logging https describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/https/list.go b/pkg/commands/alias/logging/https/list.go index 851d67300..1fa8829f4 100644 --- a/pkg/commands/alias/logging/https/list.go +++ b/pkg/commands/alias/logging/https/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging https list' command instead.") + text.Deprecated("Use the 'service logging https list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/https/update.go b/pkg/commands/alias/logging/https/update.go index 28bbd36fb..4ed2602c6 100644 --- a/pkg/commands/alias/logging/https/update.go +++ b/pkg/commands/alias/logging/https/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging https update' command instead.") + text.Deprecated("Use the 'service logging https update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kafka/create.go b/pkg/commands/alias/logging/kafka/create.go index d8ab7524d..e81fa4032 100644 --- a/pkg/commands/alias/logging/kafka/create.go +++ b/pkg/commands/alias/logging/kafka/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging kafka create' command instead.") + text.Deprecated("Use the 'service logging kafka create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kafka/delete.go b/pkg/commands/alias/logging/kafka/delete.go index 6788af8f9..329bad92a 100644 --- a/pkg/commands/alias/logging/kafka/delete.go +++ b/pkg/commands/alias/logging/kafka/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging kafka delete' command instead.") + text.Deprecated("Use the 'service logging kafka delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kafka/describe.go b/pkg/commands/alias/logging/kafka/describe.go index c2c3b9f8b..8333f9b02 100644 --- a/pkg/commands/alias/logging/kafka/describe.go +++ b/pkg/commands/alias/logging/kafka/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging kafka describe' command instead.") + text.Deprecated("Use the 'service logging kafka describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kafka/list.go b/pkg/commands/alias/logging/kafka/list.go index 41ce0afcd..142f1444d 100644 --- a/pkg/commands/alias/logging/kafka/list.go +++ b/pkg/commands/alias/logging/kafka/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging kafka list' command instead.") + text.Deprecated("Use the 'service logging kafka list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kafka/update.go b/pkg/commands/alias/logging/kafka/update.go index 4395bdcfd..e23b2fd90 100644 --- a/pkg/commands/alias/logging/kafka/update.go +++ b/pkg/commands/alias/logging/kafka/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging kafka update' command instead.") + text.Deprecated("Use the 'service logging kafka update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kinesis/create.go b/pkg/commands/alias/logging/kinesis/create.go index 873544275..2f5816d2a 100644 --- a/pkg/commands/alias/logging/kinesis/create.go +++ b/pkg/commands/alias/logging/kinesis/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging kinesis create' command instead.") + text.Deprecated("Use the 'service logging kinesis create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kinesis/delete.go b/pkg/commands/alias/logging/kinesis/delete.go index db36ee70b..317282673 100644 --- a/pkg/commands/alias/logging/kinesis/delete.go +++ b/pkg/commands/alias/logging/kinesis/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging kinesis delete' command instead.") + text.Deprecated("Use the 'service logging kinesis delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kinesis/describe.go b/pkg/commands/alias/logging/kinesis/describe.go index 152e02e83..d9f545be0 100644 --- a/pkg/commands/alias/logging/kinesis/describe.go +++ b/pkg/commands/alias/logging/kinesis/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging kinesis describe' command instead.") + text.Deprecated("Use the 'service logging kinesis describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kinesis/list.go b/pkg/commands/alias/logging/kinesis/list.go index 4426fd3af..ee8befe97 100644 --- a/pkg/commands/alias/logging/kinesis/list.go +++ b/pkg/commands/alias/logging/kinesis/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging kinesis list' command instead.") + text.Deprecated("Use the 'service logging kinesis list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/kinesis/update.go b/pkg/commands/alias/logging/kinesis/update.go index b02fe433b..00c3d55f4 100644 --- a/pkg/commands/alias/logging/kinesis/update.go +++ b/pkg/commands/alias/logging/kinesis/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging kinesis update' command instead.") + text.Deprecated("Use the 'service logging kinesis update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/loggly/create.go b/pkg/commands/alias/logging/loggly/create.go index 68a8b3764..4c718db56 100644 --- a/pkg/commands/alias/logging/loggly/create.go +++ b/pkg/commands/alias/logging/loggly/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging loggly create' command instead.") + text.Deprecated("Use the 'service logging loggly create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/loggly/delete.go b/pkg/commands/alias/logging/loggly/delete.go index c2c256b9b..8d8807be5 100644 --- a/pkg/commands/alias/logging/loggly/delete.go +++ b/pkg/commands/alias/logging/loggly/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging loggly delete' command instead.") + text.Deprecated("Use the 'service logging loggly delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/loggly/describe.go b/pkg/commands/alias/logging/loggly/describe.go index cdc707c62..0b122425d 100644 --- a/pkg/commands/alias/logging/loggly/describe.go +++ b/pkg/commands/alias/logging/loggly/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging loggly describe' command instead.") + text.Deprecated("Use the 'service logging loggly describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/loggly/list.go b/pkg/commands/alias/logging/loggly/list.go index 0c383f286..372dd21fa 100644 --- a/pkg/commands/alias/logging/loggly/list.go +++ b/pkg/commands/alias/logging/loggly/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging loggly list' command instead.") + text.Deprecated("Use the 'service logging loggly list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/loggly/update.go b/pkg/commands/alias/logging/loggly/update.go index aace3ce4b..6db582690 100644 --- a/pkg/commands/alias/logging/loggly/update.go +++ b/pkg/commands/alias/logging/loggly/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging loggly update' command instead.") + text.Deprecated("Use the 'service logging loggly update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/logshuttle/create.go b/pkg/commands/alias/logging/logshuttle/create.go index 97c457cb9..3ca65d384 100644 --- a/pkg/commands/alias/logging/logshuttle/create.go +++ b/pkg/commands/alias/logging/logshuttle/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging logshuttle create' command instead.") + text.Deprecated("Use the 'service logging logshuttle create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/logshuttle/delete.go b/pkg/commands/alias/logging/logshuttle/delete.go index 5613c2ad0..e85638f6b 100644 --- a/pkg/commands/alias/logging/logshuttle/delete.go +++ b/pkg/commands/alias/logging/logshuttle/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging logshuttle delete' command instead.") + text.Deprecated("Use the 'service logging logshuttle delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/logshuttle/describe.go b/pkg/commands/alias/logging/logshuttle/describe.go index 7e675fd60..153f2640e 100644 --- a/pkg/commands/alias/logging/logshuttle/describe.go +++ b/pkg/commands/alias/logging/logshuttle/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging logshuttle describe' command instead.") + text.Deprecated("Use the 'service logging logshuttle describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/logshuttle/list.go b/pkg/commands/alias/logging/logshuttle/list.go index b6b8ca249..fe01f397d 100644 --- a/pkg/commands/alias/logging/logshuttle/list.go +++ b/pkg/commands/alias/logging/logshuttle/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging logshuttle list' command instead.") + text.Deprecated("Use the 'service logging logshuttle list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/logshuttle/update.go b/pkg/commands/alias/logging/logshuttle/update.go index 65ed71646..5722267ea 100644 --- a/pkg/commands/alias/logging/logshuttle/update.go +++ b/pkg/commands/alias/logging/logshuttle/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging logshuttle update' command instead.") + text.Deprecated("Use the 'service logging logshuttle update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelic/create.go b/pkg/commands/alias/logging/newrelic/create.go index 6ada5cbb7..7430d9638 100644 --- a/pkg/commands/alias/logging/newrelic/create.go +++ b/pkg/commands/alias/logging/newrelic/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging newrelic create' command instead.") + text.Deprecated("Use the 'service logging newrelic create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelic/delete.go b/pkg/commands/alias/logging/newrelic/delete.go index 666f2177f..c41972785 100644 --- a/pkg/commands/alias/logging/newrelic/delete.go +++ b/pkg/commands/alias/logging/newrelic/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging newrelic delete' command instead.") + text.Deprecated("Use the 'service logging newrelic delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelic/describe.go b/pkg/commands/alias/logging/newrelic/describe.go index fd578be58..b87b9a9d9 100644 --- a/pkg/commands/alias/logging/newrelic/describe.go +++ b/pkg/commands/alias/logging/newrelic/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging newrelic describe' command instead.") + text.Deprecated("Use the 'service logging newrelic describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelic/list.go b/pkg/commands/alias/logging/newrelic/list.go index c8a34748e..4e6bf5137 100644 --- a/pkg/commands/alias/logging/newrelic/list.go +++ b/pkg/commands/alias/logging/newrelic/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging newrelic list' command instead.") + text.Deprecated("Use the 'service logging newrelic list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelic/update.go b/pkg/commands/alias/logging/newrelic/update.go index f5ea2eda5..c8dc1c115 100644 --- a/pkg/commands/alias/logging/newrelic/update.go +++ b/pkg/commands/alias/logging/newrelic/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging newrelic update' command instead.") + text.Deprecated("Use the 'service logging newrelic update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelicotlp/create.go b/pkg/commands/alias/logging/newrelicotlp/create.go index 6e0f27439..c3e72cf1b 100644 --- a/pkg/commands/alias/logging/newrelicotlp/create.go +++ b/pkg/commands/alias/logging/newrelicotlp/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging newrelicotlp create' command instead.") + text.Deprecated("Use the 'service logging newrelicotlp create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelicotlp/delete.go b/pkg/commands/alias/logging/newrelicotlp/delete.go index 5b88a1000..a22109c3c 100644 --- a/pkg/commands/alias/logging/newrelicotlp/delete.go +++ b/pkg/commands/alias/logging/newrelicotlp/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging newrelicotlp delete' command instead.") + text.Deprecated("Use the 'service logging newrelicotlp delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelicotlp/describe.go b/pkg/commands/alias/logging/newrelicotlp/describe.go index 64ad1a4e3..f9675941b 100644 --- a/pkg/commands/alias/logging/newrelicotlp/describe.go +++ b/pkg/commands/alias/logging/newrelicotlp/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging newrelicotlp describe' command instead.") + text.Deprecated("Use the 'service logging newrelicotlp describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelicotlp/list.go b/pkg/commands/alias/logging/newrelicotlp/list.go index 60ced4609..1de405f6f 100644 --- a/pkg/commands/alias/logging/newrelicotlp/list.go +++ b/pkg/commands/alias/logging/newrelicotlp/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging newrelicotlp list' command instead.") + text.Deprecated("Use the 'service logging newrelicotlp list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/newrelicotlp/update.go b/pkg/commands/alias/logging/newrelicotlp/update.go index 4868fe660..0c7006cf2 100644 --- a/pkg/commands/alias/logging/newrelicotlp/update.go +++ b/pkg/commands/alias/logging/newrelicotlp/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging newrelicotlp update' command instead.") + text.Deprecated("Use the 'service logging newrelicotlp update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/openstack/create.go b/pkg/commands/alias/logging/openstack/create.go index e43a78e33..963978aa0 100644 --- a/pkg/commands/alias/logging/openstack/create.go +++ b/pkg/commands/alias/logging/openstack/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging openstack create' command instead.") + text.Deprecated("Use the 'service logging openstack create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/openstack/delete.go b/pkg/commands/alias/logging/openstack/delete.go index b275a97ef..c8375fd32 100644 --- a/pkg/commands/alias/logging/openstack/delete.go +++ b/pkg/commands/alias/logging/openstack/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging openstack delete' command instead.") + text.Deprecated("Use the 'service logging openstack delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/openstack/describe.go b/pkg/commands/alias/logging/openstack/describe.go index 6474a75a5..41c7d011a 100644 --- a/pkg/commands/alias/logging/openstack/describe.go +++ b/pkg/commands/alias/logging/openstack/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging openstack describe' command instead.") + text.Deprecated("Use the 'service logging openstack describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/openstack/list.go b/pkg/commands/alias/logging/openstack/list.go index 61d728d65..5babec700 100644 --- a/pkg/commands/alias/logging/openstack/list.go +++ b/pkg/commands/alias/logging/openstack/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging openstack list' command instead.") + text.Deprecated("Use the 'service logging openstack list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/openstack/update.go b/pkg/commands/alias/logging/openstack/update.go index 7a7129de1..18d6d04ad 100644 --- a/pkg/commands/alias/logging/openstack/update.go +++ b/pkg/commands/alias/logging/openstack/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging openstack update' command instead.") + text.Deprecated("Use the 'service logging openstack update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/papertrail/create.go b/pkg/commands/alias/logging/papertrail/create.go index 2234ba68f..95d76b891 100644 --- a/pkg/commands/alias/logging/papertrail/create.go +++ b/pkg/commands/alias/logging/papertrail/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging papertrail create' command instead.") + text.Deprecated("Use the 'service logging papertrail create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/papertrail/delete.go b/pkg/commands/alias/logging/papertrail/delete.go index c3a3a9ce3..c2c9cae34 100644 --- a/pkg/commands/alias/logging/papertrail/delete.go +++ b/pkg/commands/alias/logging/papertrail/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging papertrail delete' command instead.") + text.Deprecated("Use the 'service logging papertrail delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/papertrail/describe.go b/pkg/commands/alias/logging/papertrail/describe.go index 48f823c29..08a87972b 100644 --- a/pkg/commands/alias/logging/papertrail/describe.go +++ b/pkg/commands/alias/logging/papertrail/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging papertrail describe' command instead.") + text.Deprecated("Use the 'service logging papertrail describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/papertrail/list.go b/pkg/commands/alias/logging/papertrail/list.go index e4f22f4d9..0abea5054 100644 --- a/pkg/commands/alias/logging/papertrail/list.go +++ b/pkg/commands/alias/logging/papertrail/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging papertrail list' command instead.") + text.Deprecated("Use the 'service logging papertrail list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/papertrail/update.go b/pkg/commands/alias/logging/papertrail/update.go index 6c8a3cd2c..d68b1ec6c 100644 --- a/pkg/commands/alias/logging/papertrail/update.go +++ b/pkg/commands/alias/logging/papertrail/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging papertrail update' command instead.") + text.Deprecated("Use the 'service logging papertrail update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/s3/create.go b/pkg/commands/alias/logging/s3/create.go index d4d5099e6..b46d7adf6 100644 --- a/pkg/commands/alias/logging/s3/create.go +++ b/pkg/commands/alias/logging/s3/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging s3 create' command instead.") + text.Deprecated("Use the 'service logging s3 create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/s3/delete.go b/pkg/commands/alias/logging/s3/delete.go index 3f60e77b2..a9c172096 100644 --- a/pkg/commands/alias/logging/s3/delete.go +++ b/pkg/commands/alias/logging/s3/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging s3 delete' command instead.") + text.Deprecated("Use the 'service logging s3 delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/s3/describe.go b/pkg/commands/alias/logging/s3/describe.go index f71215cc3..f9a344b05 100644 --- a/pkg/commands/alias/logging/s3/describe.go +++ b/pkg/commands/alias/logging/s3/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging s3 describe' command instead.") + text.Deprecated("Use the 'service logging s3 describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/s3/list.go b/pkg/commands/alias/logging/s3/list.go index 79a107ed7..7a374023a 100644 --- a/pkg/commands/alias/logging/s3/list.go +++ b/pkg/commands/alias/logging/s3/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging s3 list' command instead.") + text.Deprecated("Use the 'service logging s3 list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/s3/update.go b/pkg/commands/alias/logging/s3/update.go index c8520b28c..1627ae20d 100644 --- a/pkg/commands/alias/logging/s3/update.go +++ b/pkg/commands/alias/logging/s3/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging s3 update' command instead.") + text.Deprecated("Use the 'service logging s3 update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/scalyr/create.go b/pkg/commands/alias/logging/scalyr/create.go index cb1251059..3df362403 100644 --- a/pkg/commands/alias/logging/scalyr/create.go +++ b/pkg/commands/alias/logging/scalyr/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging scalyr create' command instead.") + text.Deprecated("Use the 'service logging scalyr create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/scalyr/delete.go b/pkg/commands/alias/logging/scalyr/delete.go index c31c65cd4..b62bacd4c 100644 --- a/pkg/commands/alias/logging/scalyr/delete.go +++ b/pkg/commands/alias/logging/scalyr/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging scalyr delete' command instead.") + text.Deprecated("Use the 'service logging scalyr delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/scalyr/describe.go b/pkg/commands/alias/logging/scalyr/describe.go index f5c302093..d48526e66 100644 --- a/pkg/commands/alias/logging/scalyr/describe.go +++ b/pkg/commands/alias/logging/scalyr/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging scalyr describe' command instead.") + text.Deprecated("Use the 'service logging scalyr describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/scalyr/list.go b/pkg/commands/alias/logging/scalyr/list.go index f48971035..506505fd6 100644 --- a/pkg/commands/alias/logging/scalyr/list.go +++ b/pkg/commands/alias/logging/scalyr/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging scalyr list' command instead.") + text.Deprecated("Use the 'service logging scalyr list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/scalyr/update.go b/pkg/commands/alias/logging/scalyr/update.go index e0e4bc688..e4c74ae17 100644 --- a/pkg/commands/alias/logging/scalyr/update.go +++ b/pkg/commands/alias/logging/scalyr/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging scalyr update' command instead.") + text.Deprecated("Use the 'service logging scalyr update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sftp/create.go b/pkg/commands/alias/logging/sftp/create.go index fa9fd1d74..8f74265a6 100644 --- a/pkg/commands/alias/logging/sftp/create.go +++ b/pkg/commands/alias/logging/sftp/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging sftp create' command instead.") + text.Deprecated("Use the 'service logging sftp create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sftp/delete.go b/pkg/commands/alias/logging/sftp/delete.go index f7393600f..98eea2722 100644 --- a/pkg/commands/alias/logging/sftp/delete.go +++ b/pkg/commands/alias/logging/sftp/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging sftp delete' command instead.") + text.Deprecated("Use the 'service logging sftp delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sftp/describe.go b/pkg/commands/alias/logging/sftp/describe.go index 75d6cbf6f..905ab02c3 100644 --- a/pkg/commands/alias/logging/sftp/describe.go +++ b/pkg/commands/alias/logging/sftp/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging sftp describe' command instead.") + text.Deprecated("Use the 'service logging sftp describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sftp/list.go b/pkg/commands/alias/logging/sftp/list.go index db1fb173f..94e26c7f6 100644 --- a/pkg/commands/alias/logging/sftp/list.go +++ b/pkg/commands/alias/logging/sftp/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging sftp list' command instead.") + text.Deprecated("Use the 'service logging sftp list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sftp/update.go b/pkg/commands/alias/logging/sftp/update.go index 7f82513ff..244fdf761 100644 --- a/pkg/commands/alias/logging/sftp/update.go +++ b/pkg/commands/alias/logging/sftp/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging sftp update' command instead.") + text.Deprecated("Use the 'service logging sftp update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/splunk/create.go b/pkg/commands/alias/logging/splunk/create.go index 17484799f..82020fc93 100644 --- a/pkg/commands/alias/logging/splunk/create.go +++ b/pkg/commands/alias/logging/splunk/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging splunk create' command instead.") + text.Deprecated("Use the 'service logging splunk create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/splunk/delete.go b/pkg/commands/alias/logging/splunk/delete.go index e590093e5..9ef3476a1 100644 --- a/pkg/commands/alias/logging/splunk/delete.go +++ b/pkg/commands/alias/logging/splunk/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging splunk delete' command instead.") + text.Deprecated("Use the 'service logging splunk delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/splunk/describe.go b/pkg/commands/alias/logging/splunk/describe.go index 0ce9e6169..7df1e9c86 100644 --- a/pkg/commands/alias/logging/splunk/describe.go +++ b/pkg/commands/alias/logging/splunk/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging splunk describe' command instead.") + text.Deprecated("Use the 'service logging splunk describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/splunk/list.go b/pkg/commands/alias/logging/splunk/list.go index dee917129..290e70dc1 100644 --- a/pkg/commands/alias/logging/splunk/list.go +++ b/pkg/commands/alias/logging/splunk/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging splunk list' command instead.") + text.Deprecated("Use the 'service logging splunk list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/splunk/update.go b/pkg/commands/alias/logging/splunk/update.go index f3c8a839d..543847d8c 100644 --- a/pkg/commands/alias/logging/splunk/update.go +++ b/pkg/commands/alias/logging/splunk/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging splunk update' command instead.") + text.Deprecated("Use the 'service logging splunk update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sumologic/create.go b/pkg/commands/alias/logging/sumologic/create.go index a8ca9a09b..a6d1fdf1e 100644 --- a/pkg/commands/alias/logging/sumologic/create.go +++ b/pkg/commands/alias/logging/sumologic/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging sumologic create' command instead.") + text.Deprecated("Use the 'service logging sumologic create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sumologic/delete.go b/pkg/commands/alias/logging/sumologic/delete.go index 0ba3cfa5e..ad7cc9954 100644 --- a/pkg/commands/alias/logging/sumologic/delete.go +++ b/pkg/commands/alias/logging/sumologic/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging sumologic delete' command instead.") + text.Deprecated("Use the 'service logging sumologic delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sumologic/describe.go b/pkg/commands/alias/logging/sumologic/describe.go index 154d499f0..cb28aced6 100644 --- a/pkg/commands/alias/logging/sumologic/describe.go +++ b/pkg/commands/alias/logging/sumologic/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging sumologic describe' command instead.") + text.Deprecated("Use the 'service logging sumologic describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sumologic/list.go b/pkg/commands/alias/logging/sumologic/list.go index a4d7a307b..3247807ee 100644 --- a/pkg/commands/alias/logging/sumologic/list.go +++ b/pkg/commands/alias/logging/sumologic/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging sumologic list' command instead.") + text.Deprecated("Use the 'service logging sumologic list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/sumologic/update.go b/pkg/commands/alias/logging/sumologic/update.go index 23c76a368..87acbaafc 100644 --- a/pkg/commands/alias/logging/sumologic/update.go +++ b/pkg/commands/alias/logging/sumologic/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging sumologic update' command instead.") + text.Deprecated("Use the 'service logging sumologic update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/syslog/create.go b/pkg/commands/alias/logging/syslog/create.go index 617654ddf..46aed4eba 100644 --- a/pkg/commands/alias/logging/syslog/create.go +++ b/pkg/commands/alias/logging/syslog/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging syslog create' command instead.") + text.Deprecated("Use the 'service logging syslog create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/syslog/delete.go b/pkg/commands/alias/logging/syslog/delete.go index 61cca0d16..0ee3a7d57 100644 --- a/pkg/commands/alias/logging/syslog/delete.go +++ b/pkg/commands/alias/logging/syslog/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging syslog delete' command instead.") + text.Deprecated("Use the 'service logging syslog delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/syslog/describe.go b/pkg/commands/alias/logging/syslog/describe.go index acd4cf016..80005157b 100644 --- a/pkg/commands/alias/logging/syslog/describe.go +++ b/pkg/commands/alias/logging/syslog/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging syslog describe' command instead.") + text.Deprecated("Use the 'service logging syslog describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/syslog/list.go b/pkg/commands/alias/logging/syslog/list.go index fc55679d0..01582effd 100644 --- a/pkg/commands/alias/logging/syslog/list.go +++ b/pkg/commands/alias/logging/syslog/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service logging syslog list' command instead.") + text.Deprecated("Use the 'service logging syslog list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/logging/syslog/update.go b/pkg/commands/alias/logging/syslog/update.go index 31fe07994..255141f59 100644 --- a/pkg/commands/alias/logging/syslog/update.go +++ b/pkg/commands/alias/logging/syslog/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service logging syslog update' command instead.") + text.Deprecated("Use the 'service logging syslog update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/purge/purge.go b/pkg/commands/alias/purge/purge.go index 86d44c77c..ed57bdab7 100644 --- a/pkg/commands/alias/purge/purge.go +++ b/pkg/commands/alias/purge/purge.go @@ -24,6 +24,6 @@ func NewCommand(parent argparser.Registerer, g *global.Data) *Command { // Exec implements the command interface. func (c *Command) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service purge' command instead.") + text.Deprecated("Use the 'service purge' command instead.") return c.PurgeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/ratelimit/create.go b/pkg/commands/alias/ratelimit/create.go index 4c121bbc1..444543568 100644 --- a/pkg/commands/alias/ratelimit/create.go +++ b/pkg/commands/alias/ratelimit/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service rate-limit create' command instead.") + text.Deprecated("Use the 'service rate-limit create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/ratelimit/delete.go b/pkg/commands/alias/ratelimit/delete.go index ed9e3ede2..b63ac3f31 100644 --- a/pkg/commands/alias/ratelimit/delete.go +++ b/pkg/commands/alias/ratelimit/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service rate-limit delete' command instead.") + text.Deprecated("Use the 'service rate-limit delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/ratelimit/describe.go b/pkg/commands/alias/ratelimit/describe.go index 33c6f42df..9f0eebb3a 100644 --- a/pkg/commands/alias/ratelimit/describe.go +++ b/pkg/commands/alias/ratelimit/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service rate-limit describe' command instead.") + text.Deprecated("Use the 'service rate-limit describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/ratelimit/list.go b/pkg/commands/alias/ratelimit/list.go index 407bc0b05..d3e0c6883 100644 --- a/pkg/commands/alias/ratelimit/list.go +++ b/pkg/commands/alias/ratelimit/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service rate-limit list' command instead.") + text.Deprecated("Use the 'service rate-limit list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/ratelimit/update.go b/pkg/commands/alias/ratelimit/update.go index baf40fe59..5f5c6eab1 100644 --- a/pkg/commands/alias/ratelimit/update.go +++ b/pkg/commands/alias/ratelimit/update.go @@ -25,7 +25,7 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service rate-limit update' command instead.") + text.Deprecated("Use the 'service rate-limit update' command instead.") } return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/resourcelink/create.go b/pkg/commands/alias/resourcelink/create.go index 8e729d211..b379b1f6f 100644 --- a/pkg/commands/alias/resourcelink/create.go +++ b/pkg/commands/alias/resourcelink/create.go @@ -25,7 +25,7 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service resource-link create' command instead.") + text.Deprecated("Use the 'service resource-link create' command instead.") } return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/resourcelink/delete.go b/pkg/commands/alias/resourcelink/delete.go index 5a3770a6b..c269300e0 100644 --- a/pkg/commands/alias/resourcelink/delete.go +++ b/pkg/commands/alias/resourcelink/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service resource-link delete' command instead.") + text.Deprecated("Use the 'service resource-link delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/resourcelink/describe.go b/pkg/commands/alias/resourcelink/describe.go index 7b05391d6..c5f09ad69 100644 --- a/pkg/commands/alias/resourcelink/describe.go +++ b/pkg/commands/alias/resourcelink/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service resource-link describe' command instead.") + text.Deprecated("Use the 'service resource-link describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/resourcelink/list.go b/pkg/commands/alias/resourcelink/list.go index 4123caa0d..52dd527d5 100644 --- a/pkg/commands/alias/resourcelink/list.go +++ b/pkg/commands/alias/resourcelink/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service resource-link list' command instead.") + text.Deprecated("Use the 'service resource-link list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/resourcelink/update.go b/pkg/commands/alias/resourcelink/update.go index 64037f384..c7488463e 100644 --- a/pkg/commands/alias/resourcelink/update.go +++ b/pkg/commands/alias/resourcelink/update.go @@ -25,7 +25,7 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service resource-link update' command instead.") + text.Deprecated("Use the 'service resource-link update' command instead.") } return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceauth/create.go b/pkg/commands/alias/serviceauth/create.go index 7eacb7f76..455d6ccea 100644 --- a/pkg/commands/alias/serviceauth/create.go +++ b/pkg/commands/alias/serviceauth/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service auth create' command instead.") + text.Deprecated("Use the 'service auth create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceauth/delete.go b/pkg/commands/alias/serviceauth/delete.go index eb65d9be1..d7a74f3fd 100644 --- a/pkg/commands/alias/serviceauth/delete.go +++ b/pkg/commands/alias/serviceauth/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service auth delete' command instead.") + text.Deprecated("Use the 'service auth delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceauth/describe.go b/pkg/commands/alias/serviceauth/describe.go index 65ee48bc8..548ae0ad7 100644 --- a/pkg/commands/alias/serviceauth/describe.go +++ b/pkg/commands/alias/serviceauth/describe.go @@ -25,7 +25,7 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service auth describe' command instead.") + text.Deprecated("Use the 'service auth describe' command instead.") } return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceauth/list.go b/pkg/commands/alias/serviceauth/list.go index bc5287000..32b2bdd68 100644 --- a/pkg/commands/alias/serviceauth/list.go +++ b/pkg/commands/alias/serviceauth/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service auth list' command instead.") + text.Deprecated("Use the 'service auth list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceauth/update.go b/pkg/commands/alias/serviceauth/update.go index eebdd40a0..0e5159262 100644 --- a/pkg/commands/alias/serviceauth/update.go +++ b/pkg/commands/alias/serviceauth/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service auth update' command instead.") + text.Deprecated("Use the 'service auth update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/activate.go b/pkg/commands/alias/serviceversion/activate.go index 16646d353..cb1c10dc1 100644 --- a/pkg/commands/alias/serviceversion/activate.go +++ b/pkg/commands/alias/serviceversion/activate.go @@ -24,6 +24,6 @@ func NewActivateCommand(parent argparser.Registerer, g *global.Data) *ActivateCo // Exec implements the command interface. func (c *ActivateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service version activate' command instead.") + text.Deprecated("Use the 'service version activate' command instead.") return c.ActivateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/clone.go b/pkg/commands/alias/serviceversion/clone.go index 4ab3c8564..b57fd9c72 100644 --- a/pkg/commands/alias/serviceversion/clone.go +++ b/pkg/commands/alias/serviceversion/clone.go @@ -25,7 +25,7 @@ func NewCloneCommand(parent argparser.Registerer, g *global.Data) *CloneCommand // Exec implements the command interface. func (c *CloneCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service version clone' command instead.") + text.Deprecated("Use the 'service version clone' command instead.") } return c.CloneCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/deactivate.go b/pkg/commands/alias/serviceversion/deactivate.go index 111798a10..d11d12808 100644 --- a/pkg/commands/alias/serviceversion/deactivate.go +++ b/pkg/commands/alias/serviceversion/deactivate.go @@ -24,6 +24,6 @@ func NewDeactivateCommand(parent argparser.Registerer, g *global.Data) *Deactiva // Exec implements the command interface. func (c *DeactivateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service version deactivate' command instead.") + text.Deprecated("Use the 'service version deactivate' command instead.") return c.DeactivateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/list.go b/pkg/commands/alias/serviceversion/list.go index ce15caf65..77727a6ca 100644 --- a/pkg/commands/alias/serviceversion/list.go +++ b/pkg/commands/alias/serviceversion/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service version list' command instead.") + text.Deprecated("Use the 'service version list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/lock.go b/pkg/commands/alias/serviceversion/lock.go index 7bb394794..686cfb754 100644 --- a/pkg/commands/alias/serviceversion/lock.go +++ b/pkg/commands/alias/serviceversion/lock.go @@ -24,6 +24,6 @@ func NewLockCommand(parent argparser.Registerer, g *global.Data) *LockCommand { // Exec implements the command interface. func (c *LockCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service version lock' command instead.") + text.Deprecated("Use the 'service version lock' command instead.") return c.LockCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/stage.go b/pkg/commands/alias/serviceversion/stage.go index 1c687036b..834186a3b 100644 --- a/pkg/commands/alias/serviceversion/stage.go +++ b/pkg/commands/alias/serviceversion/stage.go @@ -24,6 +24,6 @@ func NewStageCommand(parent argparser.Registerer, g *global.Data) *StageCommand // Exec implements the command interface. func (c *StageCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service version stage' command instead.") + text.Deprecated("Use the 'service version stage' command instead.") return c.StageCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/unstage.go b/pkg/commands/alias/serviceversion/unstage.go index 6afd513e2..27062d0a4 100644 --- a/pkg/commands/alias/serviceversion/unstage.go +++ b/pkg/commands/alias/serviceversion/unstage.go @@ -24,6 +24,6 @@ func NewUnstageCommand(parent argparser.Registerer, g *global.Data) *UnstageComm // Exec implements the command interface. func (c *UnstageCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service version unstage' command instead.") + text.Deprecated("Use the 'service version unstage' command instead.") return c.UnstageCommand.Exec(in, out) } diff --git a/pkg/commands/alias/serviceversion/update.go b/pkg/commands/alias/serviceversion/update.go index 446510fe2..fea7aa27c 100644 --- a/pkg/commands/alias/serviceversion/update.go +++ b/pkg/commands/alias/serviceversion/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service version update' command instead.") + text.Deprecated("Use the 'service version update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/condition/create.go b/pkg/commands/alias/vcl/condition/create.go index c98be81cb..a0c2bee4f 100644 --- a/pkg/commands/alias/vcl/condition/create.go +++ b/pkg/commands/alias/vcl/condition/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl condition create' command instead.") + text.Deprecated("Use the 'service vcl condition create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/condition/delete.go b/pkg/commands/alias/vcl/condition/delete.go index c5f822888..ac587230a 100644 --- a/pkg/commands/alias/vcl/condition/delete.go +++ b/pkg/commands/alias/vcl/condition/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl condition delete' command instead.") + text.Deprecated("Use the 'service vcl condition delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/condition/describe.go b/pkg/commands/alias/vcl/condition/describe.go index 0e8f24efa..56d9c3f0e 100644 --- a/pkg/commands/alias/vcl/condition/describe.go +++ b/pkg/commands/alias/vcl/condition/describe.go @@ -24,6 +24,6 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl condition describe' command instead.") + text.Deprecated("Use the 'service vcl condition describe' command instead.") return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/condition/list.go b/pkg/commands/alias/vcl/condition/list.go index 8010cb6f3..87b523df9 100644 --- a/pkg/commands/alias/vcl/condition/list.go +++ b/pkg/commands/alias/vcl/condition/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service vcl condition list' command instead.") + text.Deprecated("Use the 'service vcl condition list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/condition/update.go b/pkg/commands/alias/vcl/condition/update.go index 8fd450e2f..b383182be 100644 --- a/pkg/commands/alias/vcl/condition/update.go +++ b/pkg/commands/alias/vcl/condition/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl condition update' command instead.") + text.Deprecated("Use the 'service vcl condition update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/custom/create.go b/pkg/commands/alias/vcl/custom/create.go index 5a7f8b0a4..f1a0e713d 100644 --- a/pkg/commands/alias/vcl/custom/create.go +++ b/pkg/commands/alias/vcl/custom/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl custom create' command instead.") + text.Deprecated("Use the 'service vcl custom create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/custom/delete.go b/pkg/commands/alias/vcl/custom/delete.go index 01b077592..8da2aca1b 100644 --- a/pkg/commands/alias/vcl/custom/delete.go +++ b/pkg/commands/alias/vcl/custom/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl custom delete' command instead.") + text.Deprecated("Use the 'service vcl custom delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/custom/describe.go b/pkg/commands/alias/vcl/custom/describe.go index 79c010b73..e2e4a9c15 100644 --- a/pkg/commands/alias/vcl/custom/describe.go +++ b/pkg/commands/alias/vcl/custom/describe.go @@ -24,6 +24,6 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl custom describe' command instead.") + text.Deprecated("Use the 'service vcl custom describe' command instead.") return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/custom/list.go b/pkg/commands/alias/vcl/custom/list.go index 7868d7a02..0dc1cf0ff 100644 --- a/pkg/commands/alias/vcl/custom/list.go +++ b/pkg/commands/alias/vcl/custom/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service vcl custom list' command instead.") + text.Deprecated("Use the 'service vcl custom list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/custom/update.go b/pkg/commands/alias/vcl/custom/update.go index 4745cc0d8..a1642dec7 100644 --- a/pkg/commands/alias/vcl/custom/update.go +++ b/pkg/commands/alias/vcl/custom/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl custom update' command instead.") + text.Deprecated("Use the 'service vcl custom update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/describe.go b/pkg/commands/alias/vcl/describe.go index 5a570dcd0..c647e319c 100644 --- a/pkg/commands/alias/vcl/describe.go +++ b/pkg/commands/alias/vcl/describe.go @@ -24,6 +24,6 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl describe' command instead.") + text.Deprecated("Use the 'service vcl describe' command instead.") return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/snippet/create.go b/pkg/commands/alias/vcl/snippet/create.go index ffe8f9d43..37a3c3bcb 100644 --- a/pkg/commands/alias/vcl/snippet/create.go +++ b/pkg/commands/alias/vcl/snippet/create.go @@ -24,6 +24,6 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl snippet create' command instead.") + text.Deprecated("Use the 'service vcl snippet create' command instead.") return c.CreateCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/snippet/delete.go b/pkg/commands/alias/vcl/snippet/delete.go index e1e453e7b..4fb6fc465 100644 --- a/pkg/commands/alias/vcl/snippet/delete.go +++ b/pkg/commands/alias/vcl/snippet/delete.go @@ -24,6 +24,6 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec implements the command interface. func (c *DeleteCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl snippet delete' command instead.") + text.Deprecated("Use the 'service vcl snippet delete' command instead.") return c.DeleteCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/snippet/describe.go b/pkg/commands/alias/vcl/snippet/describe.go index e82245476..24fc2a65c 100644 --- a/pkg/commands/alias/vcl/snippet/describe.go +++ b/pkg/commands/alias/vcl/snippet/describe.go @@ -24,6 +24,6 @@ func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCo // Exec implements the command interface. func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl snippet describe' command instead.") + text.Deprecated("Use the 'service vcl snippet describe' command instead.") return c.DescribeCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/snippet/list.go b/pkg/commands/alias/vcl/snippet/list.go index 87ee855ca..dcd78620a 100644 --- a/pkg/commands/alias/vcl/snippet/list.go +++ b/pkg/commands/alias/vcl/snippet/list.go @@ -25,7 +25,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec implements the command interface. func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { if !c.JSONOutput.Enabled { - text.Deprecated(out, "Use the 'service vcl snippet list' command instead.") + text.Deprecated("Use the 'service vcl snippet list' command instead.") } return c.ListCommand.Exec(in, out) } diff --git a/pkg/commands/alias/vcl/snippet/update.go b/pkg/commands/alias/vcl/snippet/update.go index f732abace..cd2af84ba 100644 --- a/pkg/commands/alias/vcl/snippet/update.go +++ b/pkg/commands/alias/vcl/snippet/update.go @@ -24,6 +24,6 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec implements the command interface. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { - text.Deprecated(out, "Use the 'service vcl snippet update' command instead.") + text.Deprecated("Use the 'service vcl snippet update' command instead.") return c.UpdateCommand.Exec(in, out) } diff --git a/pkg/commands/authtoken/authtoken_test.go b/pkg/commands/authtoken/authtoken_test.go index 31f3c0c36..d294fa8b9 100644 --- a/pkg/commands/authtoken/authtoken_test.go +++ b/pkg/commands/authtoken/authtoken_test.go @@ -296,9 +296,6 @@ func listTokenOutputVerbose() string { return `Fastly API endpoint: https://api.fastly.com Fastly API token provided via config file (auth: user) -DEPRECATED: The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API -tokens. - ID: 123 Name: Foo diff --git a/pkg/commands/authtoken/create.go b/pkg/commands/authtoken/create.go index 1955157ef..9fdcf6df1 100644 --- a/pkg/commands/authtoken/create.go +++ b/pkg/commands/authtoken/create.go @@ -64,7 +64,7 @@ type CreateCommand struct { // Exec invokes the application logic for the command. func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") + text.Deprecated("The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") } input := c.constructInput() diff --git a/pkg/commands/authtoken/delete.go b/pkg/commands/authtoken/delete.go index 53e19a567..0917563db 100644 --- a/pkg/commands/authtoken/delete.go +++ b/pkg/commands/authtoken/delete.go @@ -42,7 +42,7 @@ type DeleteCommand struct { // Exec invokes the application logic for the command. func (c *DeleteCommand) Exec(_ io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") + text.Deprecated("The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") } if !c.current && c.file == "" && c.id == "" { diff --git a/pkg/commands/authtoken/describe.go b/pkg/commands/authtoken/describe.go index 7253205a8..e750e8825 100644 --- a/pkg/commands/authtoken/describe.go +++ b/pkg/commands/authtoken/describe.go @@ -36,7 +36,7 @@ type DescribeCommand struct { // Exec invokes the application logic for the command. func (c *DescribeCommand) Exec(_ io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet && !c.JSONOutput.Enabled { - text.Deprecated(out, "The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") + text.Deprecated("The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") } if c.Globals.Verbose() && c.JSONOutput.Enabled { diff --git a/pkg/commands/authtoken/list.go b/pkg/commands/authtoken/list.go index 459cb601f..05ff81c6a 100644 --- a/pkg/commands/authtoken/list.go +++ b/pkg/commands/authtoken/list.go @@ -44,7 +44,7 @@ type ListCommand struct { // Exec invokes the application logic for the command. func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet && !c.JSONOutput.Enabled { - text.Deprecated(out, "The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") + text.Deprecated("The 'auth-token' command tree will be removed in a future release. Use the Fastly API directly to manage API tokens.\n\n") } if c.Globals.Verbose() && c.JSONOutput.Enabled { diff --git a/pkg/commands/compute/language_assemblyscript.go b/pkg/commands/compute/language_assemblyscript.go index dedcfc545..b4700fb11 100644 --- a/pkg/commands/compute/language_assemblyscript.go +++ b/pkg/commands/compute/language_assemblyscript.go @@ -126,7 +126,7 @@ func (a *AssemblyScript) Build() error { if !a.verbose { text.Break(a.output) } - text.Deprecated(a.output, "The Fastly AssemblyScript SDK is being deprecated in favor of the more up-to-date and feature-rich JavaScript SDK. You can learn more about the JavaScript SDK on our Developer Hub Page - https://www.fastly.com/documentation/guides/computejavascript/\n\n") + text.Deprecated("The Fastly AssemblyScript SDK is being deprecated in favor of the more up-to-date and feature-rich JavaScript SDK. You can learn more about the JavaScript SDK on our Developer Hub Page - https://www.fastly.com/documentation/guides/computejavascript/\n\n") if a.build == "" { a.build = AsDefaultBuildCommand diff --git a/pkg/commands/profile/create.go b/pkg/commands/profile/create.go index eb4303041..343f61c22 100644 --- a/pkg/commands/profile/create.go +++ b/pkg/commands/profile/create.go @@ -38,7 +38,7 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman // Exec implements the command interface. func (c *CreateCommand) Exec(in io.Reader, out io.Writer) (err error) { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth login' or 'fastly auth add' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth login' or 'fastly auth add' instead.\n\n") } if c.Globals.Verbose() { diff --git a/pkg/commands/profile/delete.go b/pkg/commands/profile/delete.go index dada5eeab..6320a31e2 100644 --- a/pkg/commands/profile/delete.go +++ b/pkg/commands/profile/delete.go @@ -28,7 +28,7 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman // Exec invokes the application logic for the command. func (c *DeleteCommand) Exec(_ io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth delete' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth delete' instead.\n\n") } if !c.Globals.Config.DeleteAuthToken(c.profile) { diff --git a/pkg/commands/profile/list.go b/pkg/commands/profile/list.go index 7e33e79a5..d4fb35894 100644 --- a/pkg/commands/profile/list.go +++ b/pkg/commands/profile/list.go @@ -29,7 +29,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { // Exec invokes the application logic for the command. func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet && !c.JSONOutput.Enabled { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth list' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth list' instead.\n\n") } if c.Globals.Verbose() && c.JSONOutput.Enabled { diff --git a/pkg/commands/profile/profile_test.go b/pkg/commands/profile/profile_test.go index 10f122146..ca604f2fd 100644 --- a/pkg/commands/profile/profile_test.go +++ b/pkg/commands/profile/profile_test.go @@ -362,7 +362,7 @@ func TestProfileToken(t *testing.T) { }, }, }, - WantOutputs: []string{"DEPRECATED", "This command will be removed", "123"}, + WantOutputs: []string{"123"}, }, { Name: "validate --quiet suppresses deprecation warning", @@ -392,8 +392,7 @@ func TestProfileToken(t *testing.T) { }, }, }, - WantOutput: "123", - DontWantOutputs: []string{"DEPRECATED", "This command will be removed"}, + WantOutput: "123", }, { Name: "validate the active profile non-SSO token is displayed by default", diff --git a/pkg/commands/profile/switch.go b/pkg/commands/profile/switch.go index dfd901f89..d5fb5e354 100644 --- a/pkg/commands/profile/switch.go +++ b/pkg/commands/profile/switch.go @@ -31,7 +31,7 @@ func NewSwitchCommand(parent argparser.Registerer, g *global.Data) *SwitchComman // Exec invokes the application logic for the command. func (c *SwitchCommand) Exec(in io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth use' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth use' instead.\n\n") } at := c.Globals.Config.GetAuthToken(c.profile) diff --git a/pkg/commands/profile/token.go b/pkg/commands/profile/token.go index 110214872..cc46e33ba 100644 --- a/pkg/commands/profile/token.go +++ b/pkg/commands/profile/token.go @@ -36,7 +36,7 @@ const defaultTokenTTL time.Duration = 5 * time.Minute // Exec implements the command interface. func (c *TokenCommand) Exec(_ io.Reader, out io.Writer) (err error) { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth show' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth show' instead.\n\n") } var name string diff --git a/pkg/commands/profile/update.go b/pkg/commands/profile/update.go index 451cc2f05..51919433b 100644 --- a/pkg/commands/profile/update.go +++ b/pkg/commands/profile/update.go @@ -34,7 +34,7 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman // Exec invokes the application logic for the command. func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth login' or 'fastly auth add' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth login' or 'fastly auth add' instead.\n\n") } profileName, at, err := c.identifyProfile() diff --git a/pkg/commands/service/backend/create.go b/pkg/commands/service/backend/create.go index 8f2a5389c..0a6c021bb 100644 --- a/pkg/commands/service/backend/create.go +++ b/pkg/commands/service/backend/create.go @@ -224,7 +224,7 @@ func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error { input.SSLCertHostname = &c.sslCertHostname.Value } if c.sslCheckCert.WasSet { - text.Deprecated(out, "The Fastly API defaults `ssl_check_cert` to true. Use `--no-ssl-check-cert` to disable this setting.\n\n") + text.Deprecated("The Fastly API defaults `ssl_check_cert` to true. Use `--no-ssl-check-cert` to disable this setting.\n\n") input.SSLCheckCert = fastly.ToPointer(fastly.Compatibool(c.sslCheckCert.Value)) } if c.sslCiphers.WasSet { diff --git a/pkg/commands/service/backend/update.go b/pkg/commands/service/backend/update.go index 22b8b97d7..4c908a7a7 100644 --- a/pkg/commands/service/backend/update.go +++ b/pkg/commands/service/backend/update.go @@ -237,7 +237,7 @@ func (c *UpdateCommand) Exec(_ io.Reader, out io.Writer) error { } if c.SSLCheckCert.WasSet { - text.Deprecated(out, "The Fastly API defaults `ssl_check_cert` to true. Use `--no-ssl-check-cert` to disable this setting.\n\n") + text.Deprecated("The Fastly API defaults `ssl_check_cert` to true. Use `--no-ssl-check-cert` to disable this setting.\n\n") input.SSLCheckCert = fastly.ToPointer(fastly.Compatibool(c.SSLCheckCert.Value)) } diff --git a/pkg/commands/sso/root.go b/pkg/commands/sso/root.go index e20863e9c..10176a51d 100644 --- a/pkg/commands/sso/root.go +++ b/pkg/commands/sso/root.go @@ -37,7 +37,7 @@ func NewRootCommand(parent argparser.Registerer, g *global.Data) *RootCommand { // Exec implements the command interface. func (c *RootCommand) Exec(in io.Reader, out io.Writer) error { if !c.Globals.Flags.Quiet { - text.Deprecated(out, "This command will be removed in a future release. Use 'fastly auth login --sso --token ' instead.\n\n") + text.Deprecated("This command will be removed in a future release. Use 'fastly auth login --sso --token ' instead.\n\n") } tokenName, isFallback := c.resolveTokenName() diff --git a/pkg/text/text.go b/pkg/text/text.go index 2562de40e..e7beceba7 100644 --- a/pkg/text/text.go +++ b/pkg/text/text.go @@ -216,12 +216,13 @@ func BreakN(w io.Writer, n int) { } // Deprecated is a wrapper for fmt.Fprintf with a bold red "DEPRECATED: " prefix. -func Deprecated(w io.Writer, format string, args ...any) { +// Deprecation warnings are always written to stderr. +func Deprecated(format string, args ...any) { prefix, suffix, txt := ParseBreaks(format) if suffix == 0 { suffix++ } - fmt.Fprintf(w, WrapString(BoldRed, "DEPRECATED", txt, prefix, suffix), args...) + fmt.Fprintf(os.Stderr, WrapString(BoldRed, "DEPRECATED", txt, prefix, suffix), args...) } // Error is a wrapper for fmt.Fprintf with a bold red "ERROR: " prefix. diff --git a/pkg/text/text_test.go b/pkg/text/text_test.go index bcb073bbb..27686138b 100644 --- a/pkg/text/text_test.go +++ b/pkg/text/text_test.go @@ -4,6 +4,7 @@ import ( "bytes" "errors" "io" + "os" "strconv" "strings" "testing" @@ -130,13 +131,6 @@ func TestPrefixes(t *testing.T) { args []any want string }{ - { - name: "Deprecated", - f: text.Deprecated, - format: "Test string %d.", - args: []any{123}, - want: "DEPRECATED: Test string 123.\n", - }, { name: "Error", f: text.Error, @@ -311,3 +305,30 @@ func TestParseBreaks(t *testing.T) { }) } } + +func TestDeprecated(t *testing.T) { + // Save original stderr and create pipe to capture output + origStderr := os.Stderr + r, w, _ := os.Pipe() + os.Stderr = w + + // Call Deprecated + text.Deprecated("Test warning message %d.", 123) + + // Restore stderr and close writer + os.Stderr = origStderr + w.Close() + + // Read captured output + var buf bytes.Buffer + if _, err := io.Copy(&buf, r); err != nil { + t.Fatalf("failed to read from pipe: %v", err) + } + output := buf.String() + + // Verify output contains expected text + want := "DEPRECATED: Test warning message 123.\n" + if output != want { + t.Errorf("Deprecated output mismatch:\ngot: %q\nwant: %q", output, want) + } +}