-
Notifications
You must be signed in to change notification settings - Fork 4
/
get.go
63 lines (58 loc) · 2.09 KB
/
get.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package cmd
import (
"github.com/spf13/cobra"
"github.com/calyptia/cli/cmd/agent"
"github.com/calyptia/cli/cmd/clusterobject"
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/members"
"github.com/calyptia/cli/cmd/pipeline"
"github.com/calyptia/cli/cmd/resourceprofile"
"github.com/calyptia/cli/cmd/tracerecord"
"github.com/calyptia/cli/cmd/tracesession"
cfg "github.com/calyptia/cli/config"
)
func newCmdGet(config *cfg.Config) *cobra.Command {
cmd := &cobra.Command{
Use: "get",
Short: "Display one or many resources",
}
cmd.AddCommand(
members.NewCmdGetMembers(config),
agent.NewCmdGetAgents(config),
agent.NewCmdGetAgent(config),
coreinstance.NewCmdGetCoreInstances(config),
coreinstance.NewCmdGetCoreInstanceFiles(config),
coreinstance.NewCmdGetCoreInstanceSecrets(config),
pipeline.NewCmdGetPipelines(config),
pipeline.NewCmdGetPipeline(config),
endpoint.NewCmdGetEndpoints(config),
pipeline.NewCmdGetPipelineConfigHistory(config),
pipeline.NewCmdGetPipelineStatusHistory(config),
pipeline.NewCmdGetPipelineSecrets(config),
pipeline.NewCmdGetPipelineFiles(config),
pipeline.NewCmdGetPipelineFile(config),
pipeline.NewCmdGetPipelineLog(config),
pipeline.NewCmdGetPipelineLogs(config),
clusterobject.NewCmdGetClusterObjects(config),
pipeline.NewCmdGetPipelineClusterObjects(config),
resourceprofile.NewCmdGetResourceProfiles(config),
environment.NewCmdGetEnvironment(config),
tracesession.NewCmdGetTraceSessions(config),
tracesession.NewCmdGetTraceSession(config),
tracerecord.NewCmdGetTraceRecords(config),
cnfg.NewCmdGetConfigSections(config),
ingestcheck.NewCmdGetIngestChecks(config),
ingestcheck.NewCmdGetIngestCheck(config),
ingestcheck.NewCmdGetIngestCheckLogs(config),
fleet.NewCmdGetFleets(config),
fleet.NewCmdGetFleet(config),
fleet.NewCmdGetFleetFiles(config),
fleet.NewCmdGetFleetFile(config),
)
return cmd
}