We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1872d4e commit d688905Copy full SHA for d688905
cmd/proc.go
@@ -2,6 +2,7 @@ package cmd
2
3
import (
4
"bufio"
5
+ "fmt"
6
"os"
7
"strings"
8
@@ -66,6 +67,18 @@ var procCommand = cobra.Command{
66
67
commandLabels = append(commandLabels, label)
68
}
69
70
+ var maxLabelLen int
71
+
72
+ for _, label := range commandLabels {
73
+ if len(label) > maxLabelLen {
74
+ maxLabelLen = len(label)
75
+ }
76
77
78
+ for i, label := range commandLabels {
79
+ commandLabels[i] = fmt.Sprintf("%s%s", label, strings.Repeat(" ", maxLabelLen-len(label)))
80
81
82
commands, err := konk.RunConcurrently(cmd.Context(), konk.RunConcurrentlyConfig{
83
Commands: commandStrings,
84
Labels: commandLabels,
0 commit comments