From e78fbd7e9115b013417a68e09de15581462554c7 Mon Sep 17 00:00:00 2001 From: Richard Carillo Date: Fri, 16 Jan 2026 11:44:40 -0500 Subject: [PATCH 1/5] moved backend under service & created alias' --- pkg/commands/alias/backend/create.go | 29 +++++++++++++++++++ pkg/commands/alias/backend/delete.go | 29 +++++++++++++++++++ pkg/commands/alias/backend/describe.go | 29 +++++++++++++++++++ pkg/commands/alias/backend/doc.go | 2 ++ pkg/commands/alias/backend/list.go | 29 +++++++++++++++++++ pkg/commands/alias/backend/root.go | 27 +++++++++++++++++ pkg/commands/alias/backend/update.go | 29 +++++++++++++++++++ pkg/commands/commands.go | 28 +++++++++++++----- pkg/commands/compute/setup/backend.go | 2 +- .../{ => service}/backend/backend_test.go | 13 +++++---- pkg/commands/{ => service}/backend/create.go | 0 pkg/commands/{ => service}/backend/delete.go | 0 .../{ => service}/backend/describe.go | 0 pkg/commands/{ => service}/backend/doc.go | 0 pkg/commands/{ => service}/backend/list.go | 0 pkg/commands/{ => service}/backend/root.go | 0 pkg/commands/{ => service}/backend/update.go | 0 17 files changed, 202 insertions(+), 15 deletions(-) create mode 100644 pkg/commands/alias/backend/create.go create mode 100644 pkg/commands/alias/backend/delete.go create mode 100644 pkg/commands/alias/backend/describe.go create mode 100644 pkg/commands/alias/backend/doc.go create mode 100644 pkg/commands/alias/backend/list.go create mode 100644 pkg/commands/alias/backend/root.go create mode 100644 pkg/commands/alias/backend/update.go rename pkg/commands/{ => service}/backend/backend_test.go (97%) rename pkg/commands/{ => service}/backend/create.go (100%) rename pkg/commands/{ => service}/backend/delete.go (100%) rename pkg/commands/{ => service}/backend/describe.go (100%) rename pkg/commands/{ => service}/backend/doc.go (100%) rename pkg/commands/{ => service}/backend/list.go (100%) rename pkg/commands/{ => service}/backend/root.go (100%) rename pkg/commands/{ => service}/backend/update.go (100%) diff --git a/pkg/commands/alias/backend/create.go b/pkg/commands/alias/backend/create.go new file mode 100644 index 000000000..76d1091f8 --- /dev/null +++ b/pkg/commands/alias/backend/create.go @@ -0,0 +1,29 @@ +package backend + +import ( + "io" + + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" + + "github.com/fastly/cli/pkg/argparser" + "github.com/fastly/cli/pkg/global" + "github.com/fastly/cli/pkg/text" +) + +// CreateCommand wraps the CreateCommand from the servicebackend package. +type CreateCommand struct { + *servicebackend.CreateCommand +} + +// NewCreateCommand returns a usable command registered under the parent. +func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateCommand { + c := CreateCommand{servicebackend.NewCreateCommand(parent, g)} + c.CmdClause.Hidden() + return &c +} + +// 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.") + return c.CreateCommand.Exec(in, out) +} diff --git a/pkg/commands/alias/backend/delete.go b/pkg/commands/alias/backend/delete.go new file mode 100644 index 000000000..746e8d2c7 --- /dev/null +++ b/pkg/commands/alias/backend/delete.go @@ -0,0 +1,29 @@ +package backend + +import ( + "io" + + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" + + "github.com/fastly/cli/pkg/argparser" + "github.com/fastly/cli/pkg/global" + "github.com/fastly/cli/pkg/text" +) + +// DeleteCommand wraps the DeleteCommand from the servicebackend package. +type DeleteCommand struct { + *servicebackend.DeleteCommand +} + +// NewDeleteCommand returns a usable command registered under the parent. +func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteCommand { + c := DeleteCommand{servicebackend.NewDeleteCommand(parent, g)} + c.CmdClause.Hidden() + return &c +} + +// 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.") + return c.DeleteCommand.Exec(in, out) +} diff --git a/pkg/commands/alias/backend/describe.go b/pkg/commands/alias/backend/describe.go new file mode 100644 index 000000000..06f251e17 --- /dev/null +++ b/pkg/commands/alias/backend/describe.go @@ -0,0 +1,29 @@ +package backend + +import ( + "io" + + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" + + "github.com/fastly/cli/pkg/argparser" + "github.com/fastly/cli/pkg/global" + "github.com/fastly/cli/pkg/text" +) + +// DescribeCommand wraps the DescribeCommand from the servicebackend package. +type DescribeCommand struct { + *servicebackend.DescribeCommand +} + +// NewDescribeCommand returns a usable command registered under the parent. +func NewDescribeCommand(parent argparser.Registerer, g *global.Data) *DescribeCommand { + c := DescribeCommand{servicebackend.NewDescribeCommand(parent, g)} + c.CmdClause.Hidden() + return &c +} + +// Exec implements the command interface. +func (c *DescribeCommand) Exec(in io.Reader, out io.Writer) error { + text.Deprecated(out, "Use the 'service backend describe' command instead.") + return c.DescribeCommand.Exec(in, out) +} diff --git a/pkg/commands/alias/backend/doc.go b/pkg/commands/alias/backend/doc.go new file mode 100644 index 000000000..549f2a5e7 --- /dev/null +++ b/pkg/commands/alias/backend/doc.go @@ -0,0 +1,2 @@ +// Package backend contains the 'backend' alias for the 'service backend' command. +package backend diff --git a/pkg/commands/alias/backend/list.go b/pkg/commands/alias/backend/list.go new file mode 100644 index 000000000..5249c5657 --- /dev/null +++ b/pkg/commands/alias/backend/list.go @@ -0,0 +1,29 @@ +package backend + +import ( + "io" + + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" + + "github.com/fastly/cli/pkg/argparser" + "github.com/fastly/cli/pkg/global" + "github.com/fastly/cli/pkg/text" +) + +// ListCommand wraps the ListCommand from the servicebackend package. +type ListCommand struct { + *servicebackend.ListCommand +} + +// NewListCommand returns a usable command registered under the parent. +func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand { + c := ListCommand{servicebackend.NewListCommand(parent, g)} + c.CmdClause.Hidden() + return &c +} + +// Exec implements the command interface. +func (c *ListCommand) Exec(in io.Reader, out io.Writer) error { + text.Deprecated(out, "Use the 'service backend list' command instead.") + return c.ListCommand.Exec(in, out) +} diff --git a/pkg/commands/alias/backend/root.go b/pkg/commands/alias/backend/root.go new file mode 100644 index 000000000..a9a09b526 --- /dev/null +++ b/pkg/commands/alias/backend/root.go @@ -0,0 +1,27 @@ +package backend + +import ( + "io" + + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" + + "github.com/fastly/cli/pkg/argparser" + "github.com/fastly/cli/pkg/global" +) + +// RootCommand wraps the RootCommand from the servicebackend package. +type RootCommand struct { + *servicebackend.RootCommand +} + +// NewRootCommand returns a usable command registered under the parent. +func NewRootCommand(parent argparser.Registerer, g *global.Data) *RootCommand { + c := RootCommand{servicebackend.NewRootCommand(parent, g)} + c.CmdClause.Hidden() + return &c +} + +// Exec implements the command interface. +func (c *RootCommand) Exec(in io.Reader, out io.Writer) error { + return c.RootCommand.Exec(in, out) +} diff --git a/pkg/commands/alias/backend/update.go b/pkg/commands/alias/backend/update.go new file mode 100644 index 000000000..fab7bae56 --- /dev/null +++ b/pkg/commands/alias/backend/update.go @@ -0,0 +1,29 @@ +package backend + +import ( + "io" + + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" + + "github.com/fastly/cli/pkg/argparser" + "github.com/fastly/cli/pkg/global" + "github.com/fastly/cli/pkg/text" +) + +// UpdateCommand wraps the UpdateCommand from the servicebackend package. +type UpdateCommand struct { + *servicebackend.UpdateCommand +} + +// NewUpdateCommand returns a usable command registered under the parent. +func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateCommand { + c := UpdateCommand{servicebackend.NewUpdateCommand(parent, g)} + c.CmdClause.Hidden() + return &c +} + +// 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.") + return c.UpdateCommand.Exec(in, out) +} diff --git a/pkg/commands/commands.go b/pkg/commands/commands.go index 47a7dc98e..f07dce5aa 100644 --- a/pkg/commands/commands.go +++ b/pkg/commands/commands.go @@ -7,6 +7,7 @@ import ( "github.com/fastly/cli/pkg/commands/acl" "github.com/fastly/cli/pkg/commands/aclentry" "github.com/fastly/cli/pkg/commands/alerts" + aliasbackend "github.com/fastly/cli/pkg/commands/alias/backend" aliashealthcheck "github.com/fastly/cli/pkg/commands/alias/healthcheck" aliaspurge "github.com/fastly/cli/pkg/commands/alias/purge" aliasvcl "github.com/fastly/cli/pkg/commands/alias/vcl" @@ -15,7 +16,6 @@ import ( aliasvclsnippet "github.com/fastly/cli/pkg/commands/alias/vcl/snippet" aliasserviceversion "github.com/fastly/cli/pkg/commands/alias/serviceversion" "github.com/fastly/cli/pkg/commands/authtoken" - "github.com/fastly/cli/pkg/commands/backend" "github.com/fastly/cli/pkg/commands/compute" "github.com/fastly/cli/pkg/commands/compute/computeacl" "github.com/fastly/cli/pkg/commands/config" @@ -98,6 +98,7 @@ import ( "github.com/fastly/cli/pkg/commands/secretstore" "github.com/fastly/cli/pkg/commands/secretstoreentry" "github.com/fastly/cli/pkg/commands/service" + servicebackend "github.com/fastly/cli/pkg/commands/service/backend" servicedomain "github.com/fastly/cli/pkg/commands/service/domain" servicehealthcheck "github.com/fastly/cli/pkg/commands/service/healthcheck" servicepurge "github.com/fastly/cli/pkg/commands/service/purge" @@ -166,12 +167,12 @@ func Define( // nolint:revive // function-length authtokenDelete := authtoken.NewDeleteCommand(authtokenCmdRoot.CmdClause, data) authtokenDescribe := authtoken.NewDescribeCommand(authtokenCmdRoot.CmdClause, data) authtokenList := authtoken.NewListCommand(authtokenCmdRoot.CmdClause, data) - backendCmdRoot := backend.NewRootCommand(app, data) - backendCreate := backend.NewCreateCommand(backendCmdRoot.CmdClause, data) - backendDelete := backend.NewDeleteCommand(backendCmdRoot.CmdClause, data) - backendDescribe := backend.NewDescribeCommand(backendCmdRoot.CmdClause, data) - backendList := backend.NewListCommand(backendCmdRoot.CmdClause, data) - backendUpdate := backend.NewUpdateCommand(backendCmdRoot.CmdClause, data) + backendCmdRoot := aliasbackend.NewRootCommand(app, data) + backendCreate := aliasbackend.NewCreateCommand(backendCmdRoot.CmdClause, data) + backendDelete := aliasbackend.NewDeleteCommand(backendCmdRoot.CmdClause, data) + backendDescribe := aliasbackend.NewDescribeCommand(backendCmdRoot.CmdClause, data) + backendList := aliasbackend.NewListCommand(backendCmdRoot.CmdClause, data) + backendUpdate := aliasbackend.NewUpdateCommand(backendCmdRoot.CmdClause, data) computeCmdRoot := compute.NewRootCommand(app, data) computeACLCmdRoot := computeacl.NewRootCommand(computeCmdRoot.CmdClause, data) computeACLCreate := computeacl.NewCreateCommand(computeACLCmdRoot.CmdClause, data) @@ -665,6 +666,12 @@ func Define( // nolint:revive // function-length servicedomainList := servicedomain.NewListCommand(servicedomainCmdRoot.CmdClause, data) servicedomainUpdate := servicedomain.NewUpdateCommand(servicedomainCmdRoot.CmdClause, data) servicedomainValidate := servicedomain.NewValidateCommand(servicedomainCmdRoot.CmdClause, data) + servicebackendCmdRoot := servicebackend.NewRootCommand(serviceCmdRoot.CmdClause, data) + servicebackendCreate := servicebackend.NewCreateCommand(servicebackendCmdRoot.CmdClause, data) + servicebackendDelete := servicebackend.NewDeleteCommand(servicebackendCmdRoot.CmdClause, data) + servicebackendDescribe := servicebackend.NewDescribeCommand(servicebackendCmdRoot.CmdClause, data) + servicebackendList := servicebackend.NewListCommand(servicebackendCmdRoot.CmdClause, data) + servicebackendUpdate := servicebackend.NewUpdateCommand(servicebackendCmdRoot.CmdClause, data) servicehealthcheckCmdRoot := servicehealthcheck.NewRootCommand(serviceCmdRoot.CmdClause, data) servicehealthcheckCreate := servicehealthcheck.NewCreateCommand(servicehealthcheckCmdRoot.CmdClause, data) servicehealthcheckDelete := servicehealthcheck.NewDeleteCommand(servicehealthcheckCmdRoot.CmdClause, data) @@ -782,7 +789,6 @@ func Define( // nolint:revive // function-length authtokenDelete, authtokenDescribe, authtokenList, - backendCmdRoot, backendCreate, backendDelete, backendDescribe, @@ -1265,6 +1271,12 @@ func Define( // nolint:revive // function-length servicedomainList, servicedomainUpdate, servicedomainValidate, + servicebackendCmdRoot, + servicebackendCreate, + servicebackendDelete, + servicebackendDescribe, + servicebackendList, + servicebackendUpdate, servicehealthcheckCmdRoot, servicehealthcheckCreate, servicehealthcheckDelete, diff --git a/pkg/commands/compute/setup/backend.go b/pkg/commands/compute/setup/backend.go index 042f26fb6..cb2eac1ff 100644 --- a/pkg/commands/compute/setup/backend.go +++ b/pkg/commands/compute/setup/backend.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/go-fastly/v12/fastly" "github.com/fastly/cli/pkg/api" - "github.com/fastly/cli/pkg/commands/backend" + "github.com/fastly/cli/pkg/commands/service/backend" "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" diff --git a/pkg/commands/backend/backend_test.go b/pkg/commands/service/backend/backend_test.go similarity index 97% rename from pkg/commands/backend/backend_test.go rename to pkg/commands/service/backend/backend_test.go index 8f3307c00..ee58701f0 100644 --- a/pkg/commands/backend/backend_test.go +++ b/pkg/commands/service/backend/backend_test.go @@ -10,7 +10,8 @@ import ( "github.com/fastly/go-fastly/v12/fastly" - root "github.com/fastly/cli/pkg/commands/backend" + root "github.com/fastly/cli/pkg/commands/service" + sub "github.com/fastly/cli/pkg/commands/service/backend" fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" @@ -206,7 +207,7 @@ func TestBackendCreate(t *testing.T) { WantError: "'prefer-ipv6' flag must be one of the following [true, false]", }, } - testutil.RunCLIScenarios(t, []string{root.CommandName, "create"}, scenarios) + testutil.RunCLIScenarios(t, []string{root.CommandName, sub.CommandName, "create"}, scenarios) } func TestBackendList(t *testing.T) { @@ -276,7 +277,7 @@ func TestBackendList(t *testing.T) { WantError: errTest.Error(), }, } - testutil.RunCLIScenarios(t, []string{root.CommandName, "list"}, scenarios) + testutil.RunCLIScenarios(t, []string{root.CommandName, sub.CommandName, "list"}, scenarios) } func TestBackendDescribe(t *testing.T) { @@ -302,7 +303,7 @@ func TestBackendDescribe(t *testing.T) { WantOutput: describeBackendOutput, }, } - testutil.RunCLIScenarios(t, []string{root.CommandName, "describe"}, scenarios) + testutil.RunCLIScenarios(t, []string{root.CommandName, sub.CommandName, "describe"}, scenarios) } func TestBackendUpdate(t *testing.T) { @@ -394,7 +395,7 @@ func TestBackendUpdate(t *testing.T) { WantError: "'prefer-ipv6' flag must be one of the following [true, false]", }, } - testutil.RunCLIScenarios(t, []string{root.CommandName, "update"}, scenarios) + testutil.RunCLIScenarios(t, []string{root.CommandName, sub.CommandName, "update"}, scenarios) } func TestBackendDelete(t *testing.T) { @@ -422,7 +423,7 @@ func TestBackendDelete(t *testing.T) { WantOutput: "Deleted backend www.test.com (service 123 version 4)", }, } - testutil.RunCLIScenarios(t, []string{root.CommandName, "delete"}, scenarios) + testutil.RunCLIScenarios(t, []string{root.CommandName, sub.CommandName, "delete"}, scenarios) } var errTest = errors.New("fixture error") diff --git a/pkg/commands/backend/create.go b/pkg/commands/service/backend/create.go similarity index 100% rename from pkg/commands/backend/create.go rename to pkg/commands/service/backend/create.go diff --git a/pkg/commands/backend/delete.go b/pkg/commands/service/backend/delete.go similarity index 100% rename from pkg/commands/backend/delete.go rename to pkg/commands/service/backend/delete.go diff --git a/pkg/commands/backend/describe.go b/pkg/commands/service/backend/describe.go similarity index 100% rename from pkg/commands/backend/describe.go rename to pkg/commands/service/backend/describe.go diff --git a/pkg/commands/backend/doc.go b/pkg/commands/service/backend/doc.go similarity index 100% rename from pkg/commands/backend/doc.go rename to pkg/commands/service/backend/doc.go diff --git a/pkg/commands/backend/list.go b/pkg/commands/service/backend/list.go similarity index 100% rename from pkg/commands/backend/list.go rename to pkg/commands/service/backend/list.go diff --git a/pkg/commands/backend/root.go b/pkg/commands/service/backend/root.go similarity index 100% rename from pkg/commands/backend/root.go rename to pkg/commands/service/backend/root.go diff --git a/pkg/commands/backend/update.go b/pkg/commands/service/backend/update.go similarity index 100% rename from pkg/commands/backend/update.go rename to pkg/commands/service/backend/update.go From a4f4cb3fb56c36a6e253e64a0fdb8e5cc919f98d Mon Sep 17 00:00:00 2001 From: Richard Carillo Date: Fri, 16 Jan 2026 12:00:33 -0500 Subject: [PATCH 2/5] changelog update --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74050f0f5..bba02df68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - feat(service/version): Add 'service version ...' commands as replacements for 'service-version ...', with unlisted and deprecated aliases of 'service-version ...'. ([#1614](https://github.com/fastly/cli/pull/1614)) - feat(service/vcl): moved the `vcl` command under the `service` command, with an unlisted and deprecated alias of `vcl` ([#1616](https://github.com/fastly/cli/pull/1616)) - feat(service/healthcheck): moved the `healthcheck` command under the `service` command, with an unlisted and deprecated alias of `healthcheck` ([#1619](https://github.com/fastly/cli/pull/1619)) +- feat(service/healthcheck): moved the `backend` command under the `service` command, with an unlisted and deprecated alias of `backend` ([#1621](https://github.com/fastly/cli/pull/1621)) ### Bug fixes: From d28454495f1b32ca40cecf2e5602fdb018dc2e10 Mon Sep 17 00:00:00 2001 From: Richard Carillo Date: Fri, 16 Jan 2026 12:03:03 -0500 Subject: [PATCH 3/5] updated run_test.go --- pkg/app/run_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/app/run_test.go b/pkg/app/run_test.go index 921c3d967..afb7aa381 100644 --- a/pkg/app/run_test.go +++ b/pkg/app/run_test.go @@ -64,7 +64,6 @@ acl acl-entry alerts auth-token -backend compute config config-store From 35741ee5a0cb7f3a8000d0debb62d796aff503ad Mon Sep 17 00:00:00 2001 From: Richard Carillo Date: Fri, 16 Jan 2026 12:04:10 -0500 Subject: [PATCH 4/5] fixed changelog typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bba02df68..81757f9e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ - feat(service/version): Add 'service version ...' commands as replacements for 'service-version ...', with unlisted and deprecated aliases of 'service-version ...'. ([#1614](https://github.com/fastly/cli/pull/1614)) - feat(service/vcl): moved the `vcl` command under the `service` command, with an unlisted and deprecated alias of `vcl` ([#1616](https://github.com/fastly/cli/pull/1616)) - feat(service/healthcheck): moved the `healthcheck` command under the `service` command, with an unlisted and deprecated alias of `healthcheck` ([#1619](https://github.com/fastly/cli/pull/1619)) -- feat(service/healthcheck): moved the `backend` command under the `service` command, with an unlisted and deprecated alias of `backend` ([#1621](https://github.com/fastly/cli/pull/1621)) +- feat(service/backend): moved the `backend` command under the `service` command, with an unlisted and deprecated alias of `backend` ([#1621](https://github.com/fastly/cli/pull/1621)) ### Bug fixes: From d9e08cd070f5eb53472c0e7a6cdbc005e89473ec Mon Sep 17 00:00:00 2001 From: Richard Carillo Date: Fri, 16 Jan 2026 13:33:18 -0500 Subject: [PATCH 5/5] moved alias commands to the correct section & fixed naming --- pkg/commands/commands.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkg/commands/commands.go b/pkg/commands/commands.go index f07dce5aa..739a4fd3a 100644 --- a/pkg/commands/commands.go +++ b/pkg/commands/commands.go @@ -167,12 +167,6 @@ func Define( // nolint:revive // function-length authtokenDelete := authtoken.NewDeleteCommand(authtokenCmdRoot.CmdClause, data) authtokenDescribe := authtoken.NewDescribeCommand(authtokenCmdRoot.CmdClause, data) authtokenList := authtoken.NewListCommand(authtokenCmdRoot.CmdClause, data) - backendCmdRoot := aliasbackend.NewRootCommand(app, data) - backendCreate := aliasbackend.NewCreateCommand(backendCmdRoot.CmdClause, data) - backendDelete := aliasbackend.NewDeleteCommand(backendCmdRoot.CmdClause, data) - backendDescribe := aliasbackend.NewDescribeCommand(backendCmdRoot.CmdClause, data) - backendList := aliasbackend.NewListCommand(backendCmdRoot.CmdClause, data) - backendUpdate := aliasbackend.NewUpdateCommand(backendCmdRoot.CmdClause, data) computeCmdRoot := compute.NewRootCommand(app, data) computeACLCmdRoot := computeacl.NewRootCommand(computeCmdRoot.CmdClause, data) computeACLCreate := computeacl.NewCreateCommand(computeACLCmdRoot.CmdClause, data) @@ -733,6 +727,12 @@ func Define( // nolint:revive // function-length whoamiCmdRoot := whoami.NewRootCommand(app, data) // Aliases for deprecated commands + aliasBackendRoot := aliasbackend.NewRootCommand(app, data) + aliasBackendCreate := aliasbackend.NewCreateCommand(aliasBackendRoot.CmdClause, data) + aliasBackendDelete := aliasbackend.NewDeleteCommand(aliasBackendRoot.CmdClause, data) + aliasBackendDescribe := aliasbackend.NewDescribeCommand(aliasBackendRoot.CmdClause, data) + aliasBackendList := aliasbackend.NewListCommand(aliasBackendRoot.CmdClause, data) + aliasBackendUpdate := aliasbackend.NewUpdateCommand(aliasBackendRoot.CmdClause, data) aliasPurge := aliaspurge.NewCommand(app, data) aliasVclRoot := aliasvcl.NewRootCommand(app, data) aliasVclDescribe := aliasvcl.NewDescribeCommand(aliasVclRoot.CmdClause, data) @@ -789,11 +789,6 @@ func Define( // nolint:revive // function-length authtokenDelete, authtokenDescribe, authtokenList, - backendCreate, - backendDelete, - backendDescribe, - backendList, - backendUpdate, computeCmdRoot, computeACLCmdRoot, computeACLCreate, @@ -1346,6 +1341,11 @@ func Define( // nolint:revive // function-length userUpdate, versionCmdRoot, whoamiCmdRoot, + aliasBackendCreate, + aliasBackendDelete, + aliasBackendDescribe, + aliasBackendList, + aliasBackendUpdate, aliasPurge, aliasVclDescribe, aliasVclConditionCreate,