From d55a74c6b2abbad33df10aab20b189a0d24bfb43 Mon Sep 17 00:00:00 2001 From: DRAGON Date: Tue, 11 Jul 2023 21:08:24 +0530 Subject: [PATCH] fix: kubescape list controls Signed-off-by: DRAGON --- core/core/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core/list.go b/core/core/list.go index cc9d6345..ea53adae 100644 --- a/core/core/list.go +++ b/core/core/list.go @@ -112,7 +112,7 @@ func jsonListFormat(_ context.Context, _ string, policies []string) { func prettyPrintControls(ctx context.Context, policies []string) { controlsTable := tablewriter.NewWriter(printer.GetWriter(ctx, "")) - controlsTable.SetAutoWrapText(true) + controlsTable.SetAutoWrapText(false) controlsTable.SetHeader([]string{"Control ID", "Control Name", "Docs", "Frameworks"}) controlsTable.SetHeaderLine(true) controlsTable.SetRowLine(true) @@ -134,7 +134,7 @@ func generateControlRows(policies []string) [][]string { docs := cautils.GetControlLink(id) - currentRow := []string{id, control, docs, framework} + currentRow := []string{id, control, docs, strings.Replace(framework, " ", "\n", -1)} rows = append(rows, currentRow) }