-
Notifications
You must be signed in to change notification settings - Fork 4
/
create.go
42 lines (37 loc) · 1.27 KB
/
create.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
package cmd
import (
"github.com/spf13/cobra"
cnfg "github.com/calyptia/cli/cmd/config"
"github.com/calyptia/cli/cmd/coreinstance"
"github.com/calyptia/cli/cmd/environment"
"github.com/calyptia/cli/cmd/fleet"
"github.com/calyptia/cli/cmd/ingestcheck"
"github.com/calyptia/cli/cmd/invitation"
"github.com/calyptia/cli/cmd/pipeline"
"github.com/calyptia/cli/cmd/resourceprofile"
"github.com/calyptia/cli/cmd/tracesession"
cfg "github.com/calyptia/cli/config"
)
func newCmdCreate(config *cfg.Config) *cobra.Command {
cmd := &cobra.Command{
Use: "create",
Short: "Create core instances, pipelines, etc.",
}
cmd.AddCommand(
invitation.NewCmdSendInvitation(config),
coreinstance.NewCmdCreateCoreInstance(config),
coreinstance.NewCmdCreateCoreInstanceFile(config),
coreinstance.NewCmdCreateCoreInstanceSecret(config),
pipeline.NewCmdCreatePipeline(config),
resourceprofile.NewCmdCreateResourceProfile(config),
pipeline.NewCmdCreatePipelineFile(config),
pipeline.NewCmdCreatePipelineLog(config),
environment.NewCmdCreateEnvironment(config),
tracesession.NewCmdCreateTraceSession(config),
cnfg.NewCmdCreateConfigSection(config),
ingestcheck.NewCmdCreateIngestCheck(config),
fleet.NewCmdCreateFleet(config),
fleet.NewCmdCreateFleetFile(config),
)
return cmd
}