diff --git a/cmd/get/benchmarks.go b/cmd/get/benchmarks.go index a4882de..2c78f02 100644 --- a/cmd/get/benchmarks.go +++ b/cmd/get/benchmarks.go @@ -9,8 +9,6 @@ import ( "io" "net/http" - "github.com/adorigi/checkctl/pkg/output/tables" - "github.com/adorigi/checkctl/pkg/config" "github.com/adorigi/checkctl/pkg/request" "github.com/adorigi/checkctl/pkg/types" @@ -80,17 +78,17 @@ to quickly create a Cobra application.`, return err } - if outputFormat == "table" { - rows := utils.GenerateBenchmarkRows(getBenchmarksResponse.Items) + // if outputFormat == "table" { + // rows := utils.GenerateBenchmarkRows(getBenchmarksResponse.Items) - tables.PrintBenchmarksTable(rows) - } else { - js, err := json.MarshalIndent(getBenchmarksResponse.Items, "", " ") - if err != nil { - return err - } - fmt.Print(string(js)) + // tables.PrintBenchmarksTable(rows) + // } else { + js, err := json.MarshalIndent(getBenchmarksResponse.Items, "", " ") + if err != nil { + return err } + fmt.Print(string(js)) + // } fmt.Printf( "\n\n\n\nNext Page: \n\tcheckctl get benchmarks --page-size %d --page-number %d --output %s\n", diff --git a/cmd/get/controls.go b/cmd/get/controls.go index 3245026..0a97ff4 100644 --- a/cmd/get/controls.go +++ b/cmd/get/controls.go @@ -9,8 +9,6 @@ import ( "io" "net/http" - "github.com/adorigi/checkctl/pkg/output/tables" - "github.com/adorigi/checkctl/pkg/config" "github.com/adorigi/checkctl/pkg/request" "github.com/adorigi/checkctl/pkg/types" @@ -78,17 +76,17 @@ to quickly create a Cobra application.`, return err } - if outputFormat == "table" { - rows := utils.GenerateControlRows(getControlsResponse.Items) + // if outputFormat == "table" { + // rows := utils.GenerateControlRows(getControlsResponse.Items) - tables.PrintControlsTable(rows) - } else { - js, err := json.MarshalIndent(getControlsResponse.Items, "", " ") - if err != nil { - return err - } - fmt.Print(string(js)) + // tables.PrintControlsTable(rows) + // } else { + js, err := json.MarshalIndent(getControlsResponse.Items, "", " ") + if err != nil { + return err } + fmt.Print(string(js)) + // } fmt.Printf( "\n\n\n\nNext Page: \n\tcheckctl get controls --page-size %d --page-number %d --output %s\n",