fix linting issues

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-11 01:04:30 +01:00
committed by Nicolas De loof
parent f2b14fe1aa
commit 89d3944837
13 changed files with 14 additions and 16 deletions

View File

@@ -22,6 +22,7 @@ const (
// TemplateLegacyJSON the legacy json formatting value using go template
TemplateLegacyJSON = "{{json.}}"
// PRETTY is the constant for default formats on list commands
//
// Deprecated: use TABLE
PRETTY = "pretty"
// TABLE Print output in table format with column headers (default)

View File

@@ -45,7 +45,7 @@ func TestPrint(t *testing.T) {
}
b := &bytes.Buffer{}
assert.NilError(t, Print(testList, PRETTY, b, func(w io.Writer) {
assert.NilError(t, Print(testList, TABLE, b, func(w io.Writer) {
for _, t := range testList {
_, _ = fmt.Fprintf(w, "%s\t%s\n", t.Name, t.Status)
}