From 5ea12e5d66b3ccd61d37babca18ac5f7ace25b87 Mon Sep 17 00:00:00 2001 From: Karl Dreher Date: Sun, 1 Jun 2025 20:25:01 -0700 Subject: [PATCH] fix: tab spacing --- cmd/list.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/list.go b/cmd/list.go index e3ff2b4..cc1c689 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -14,21 +14,21 @@ var listCmd = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { //Get all commands cmdList := lintCmd.Commands() - fmt.Printf("%s \t %s \t\t %s\n", "Command", "Rule-ID", "Short Description") + fmt.Printf("%-15s %-15s %s\n", "Command", "Rule-ID", "Short Description") //print a separator - fmt.Println("--------------------------------------------------------------------------") + fmt.Println("--------------------------------------------------") for _, command := range cmdList { - if command.Annotations != nil { - //If command.Annotations has key "rule-id", print it if _, ok := command.Annotations["rule-id"]; ok { if command.Annotations["rule-id"] == "none" { continue } - fmt.Printf("%s \t\t %s \t\t %s\n", command.Name(), command.Annotations["rule-id"], command.Short) + fmt.Printf("%-15s %-15s %s\n", + command.Name(), + command.Annotations["rule-id"], + command.Short) } } - } }, }