Skip to content

Commit 3c05f4b

Browse files
committed
move commands under service & update test to new framework
1 parent e3bd798 commit 3c05f4b

9 files changed

Lines changed: 77 additions & 174 deletions

File tree

pkg/commands/commands.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"github.com/fastly/cli/pkg/commands/dictionary"
2121
"github.com/fastly/cli/pkg/commands/dictionaryentry"
2222
"github.com/fastly/cli/pkg/commands/domain"
23-
"github.com/fastly/cli/pkg/commands/healthcheck"
2423
"github.com/fastly/cli/pkg/commands/imageoptimizerdefaults"
2524
"github.com/fastly/cli/pkg/commands/install"
2625
"github.com/fastly/cli/pkg/commands/ip"
@@ -94,6 +93,7 @@ import (
9493
"github.com/fastly/cli/pkg/commands/secretstoreentry"
9594
"github.com/fastly/cli/pkg/commands/service"
9695
servicedomain "github.com/fastly/cli/pkg/commands/service/domain"
96+
servicehealthcheck "github.com/fastly/cli/pkg/commands/service/healthcheck"
9797
servicepurge "github.com/fastly/cli/pkg/commands/service/purge"
9898
"github.com/fastly/cli/pkg/commands/serviceauth"
9999
"github.com/fastly/cli/pkg/commands/serviceversion"
@@ -228,12 +228,6 @@ func Define( // nolint:revive // function-length
228228
domainDescribe := domain.NewDescribeCommand(domainCmdRoot.CmdClause, data)
229229
domainList := domain.NewListCommand(domainCmdRoot.CmdClause, data)
230230
domainUpdate := domain.NewUpdateCommand(domainCmdRoot.CmdClause, data)
231-
healthcheckCmdRoot := healthcheck.NewRootCommand(app, data)
232-
healthcheckCreate := healthcheck.NewCreateCommand(healthcheckCmdRoot.CmdClause, data)
233-
healthcheckDelete := healthcheck.NewDeleteCommand(healthcheckCmdRoot.CmdClause, data)
234-
healthcheckDescribe := healthcheck.NewDescribeCommand(healthcheckCmdRoot.CmdClause, data)
235-
healthcheckList := healthcheck.NewListCommand(healthcheckCmdRoot.CmdClause, data)
236-
healthcheckUpdate := healthcheck.NewUpdateCommand(healthcheckCmdRoot.CmdClause, data)
237231
imageoptimizerdefaultsCmdRoot := imageoptimizerdefaults.NewRootCommand(app, data)
238232
imageoptimizerdefaultsGet := imageoptimizerdefaults.NewGetCommand(imageoptimizerdefaultsCmdRoot.CmdClause, data)
239233
imageoptimizerdefaultsUpdate := imageoptimizerdefaults.NewUpdateCommand(imageoptimizerdefaultsCmdRoot.CmdClause, data)
@@ -639,6 +633,12 @@ func Define( // nolint:revive // function-length
639633
servicedomainList := servicedomain.NewListCommand(servicedomainCmdRoot.CmdClause, data)
640634
servicedomainUpdate := servicedomain.NewUpdateCommand(servicedomainCmdRoot.CmdClause, data)
641635
servicedomainValidate := servicedomain.NewValidateCommand(servicedomainCmdRoot.CmdClause, data)
636+
servicehealthcheckCmdRoot := servicehealthcheck.NewRootCommand(serviceCmdRoot.CmdClause, data)
637+
servicehealthcheckCreate := servicehealthcheck.NewCreateCommand(servicehealthcheckCmdRoot.CmdClause, data)
638+
servicehealthcheckDelete := servicehealthcheck.NewDeleteCommand(servicehealthcheckCmdRoot.CmdClause, data)
639+
servicehealthcheckDescribe := servicehealthcheck.NewDescribeCommand(servicehealthcheckCmdRoot.CmdClause, data)
640+
servicehealthcheckList := servicehealthcheck.NewListCommand(servicehealthcheckCmdRoot.CmdClause, data)
641+
servicehealthcheckUpdate := servicehealthcheck.NewUpdateCommand(servicehealthcheckCmdRoot.CmdClause, data)
642642
statsCmdRoot := stats.NewRootCommand(app, data)
643643
statsHistorical := stats.NewHistoricalCommand(statsCmdRoot.CmdClause, data)
644644
statsRealtime := stats.NewRealtimeCommand(statsCmdRoot.CmdClause, data)
@@ -809,12 +809,6 @@ func Define( // nolint:revive // function-length
809809
domainDescribe,
810810
domainList,
811811
domainUpdate,
812-
healthcheckCmdRoot,
813-
healthcheckCreate,
814-
healthcheckDelete,
815-
healthcheckDescribe,
816-
healthcheckList,
817-
healthcheckUpdate,
818812
imageoptimizerdefaultsCmdRoot,
819813
imageoptimizerdefaultsGet,
820814
imageoptimizerdefaultsUpdate,
@@ -1205,6 +1199,12 @@ func Define( // nolint:revive // function-length
12051199
servicedomainList,
12061200
servicedomainUpdate,
12071201
servicedomainValidate,
1202+
servicehealthcheckCmdRoot,
1203+
servicehealthcheckCreate,
1204+
servicehealthcheckDelete,
1205+
servicehealthcheckDescribe,
1206+
servicehealthcheckList,
1207+
servicehealthcheckUpdate,
12081208
serviceVersionActivate,
12091209
serviceVersionClone,
12101210
serviceVersionCmdRoot,
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)