Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(formatOutput): fix spacing between tables #269

Merged
merged 4 commits into from
May 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/kor/kor.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ func formatOutputForResource(resource string, resources map[string][]string, opt
index++
}
}
table.Append([]string{})
pbr0ck3r marked this conversation as resolved.
Show resolved Hide resolved
table.Render()
return fmt.Sprintf("Unused %ss:\n%s", resource, buf.String())
pbr0ck3r marked this conversation as resolved.
Show resolved Hide resolved
}
Expand All @@ -223,6 +224,7 @@ func formatOutputForNamespace(namespace string, resources map[string][]string, o
}
return ""
}
table.Append([]string{})
table.Render()
return fmt.Sprintf("Unused resources in namespace: %q\n%s", namespace, buf.String())
}
Expand All @@ -247,6 +249,7 @@ func FormatOutputAll(namespace string, allDiffs []ResourceDiff, opts Opts) strin
}
return ""
}
table.Append([]string{})
table.Render()
return fmt.Sprintf("Unused resources in namespace: %q\n%s", namespace, buf.String())
}
Expand Down