11package main
22
33import (
4- "fmt"
54 "github.com/conplementAG/copsctl/internal/cmd/flags"
65 "github.com/conplementAG/copsctl/internal/info"
76 "github.com/conplementag/cops-hq/v2/pkg/cli"
@@ -18,25 +17,10 @@ func createInfoCommands(hq hq.HQ) {
1817
1918 orchestrator := info .New (hq )
2019
21- createClusterInfoCommand (hq , orchestrator )
2220 createInfoClusterCommand (infoCmdGroup , orchestrator )
2321 createInfoEnvironmentCommand (infoCmdGroup , orchestrator )
2422}
2523
26- func createClusterInfoCommand (hq hq.HQ , o * info.Orchestrator ) {
27- clusterInfoCmdGroup := hq .GetCli ().AddBaseCommand ("cluster-info" ,
28- "[DEPRECATED] Command for showing the CoreOps cluster information" ,
29- fmt .Sprintf ("[DEPRECATED] Use this command to get the cluster info which might be useful for your. " +
30- "For example, if the static outbound IPs are enabled for the cluster, then you can use this command to get " +
31- "these IPs. Make sure you are connected to the cluster first. Use the %s flag for automation." ,
32- flags .PrintToStdoutSilenceEverythingElse ),
33- func () {
34- o .ShowEnvironmentInfo ()
35- })
36-
37- addSilenceParam (clusterInfoCmdGroup )
38- }
39-
4024func createInfoClusterCommand (cmd cli.Command , o * info.Orchestrator ) {
4125 infoClusterCmd := cmd .AddCommand ("cluster" , "Get cluster infos" ,
4226 "Use this command to get information around cluster which have the same lifecycle as the cluster itself " +
0 commit comments