-
Notifications
You must be signed in to change notification settings - Fork 4
/
delete.go
46 lines (41 loc) · 1.42 KB
/
delete.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package cmd
import (
"github.com/spf13/cobra"
"github.com/calyptia/cli/cmd/agent"
cnfg "github.com/calyptia/cli/cmd/config"
"github.com/calyptia/cli/cmd/coreinstance"
"github.com/calyptia/cli/cmd/endpoint"
"github.com/calyptia/cli/cmd/environment"
"github.com/calyptia/cli/cmd/fleet"
"github.com/calyptia/cli/cmd/ingestcheck"
"github.com/calyptia/cli/cmd/pipeline"
"github.com/calyptia/cli/cmd/tracesession"
cfg "github.com/calyptia/cli/config"
)
func newCmdDelete(config *cfg.Config) *cobra.Command {
cmd := &cobra.Command{
Use: "delete",
Short: "Delete core instances, pipelines, etc.",
}
cmd.AddCommand(
agent.NewCmdDeleteAgents(config),
agent.NewCmdDeleteAgent(config),
fleet.NewCmdDeleteFleet(config),
fleet.NewCmdDeleteFleetFile(config),
pipeline.NewCmdDeletePipeline(config),
pipeline.NewCmdDeletePipelines(config),
endpoint.NewCmdDeleteEndpoint(config),
pipeline.NewCmdDeletePipelineFile(config),
pipeline.NewCmdDeletePipelineClusterObject(config),
pipeline.NewCmdDeletePipelineLog(config),
coreinstance.NewCmdDeleteCoreInstance(config),
coreinstance.NewCmdDeleteCoreInstanceFile(config),
coreinstance.NewCmdDeleteCoreInstanceSecret(config),
coreinstance.NewCmdDeleteCoreInstances(config),
environment.NewCmdDeleteEnvironment(config),
tracesession.NewCmdDeleteTraceSession(config),
cnfg.NewCmdDeleteConfigSection(config),
ingestcheck.NewCmdDeleteIngestCheck(config),
)
return cmd
}