File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
"os"
24
24
"path/filepath"
25
25
"slices"
26
+ "strings"
26
27
"time"
27
28
28
29
"github.com/nginxinc/nginx-k8s-supportpkg/pkg/data_collector"
@@ -70,10 +71,16 @@ func Execute() {
70
71
failedJobs := 0
71
72
totalJobs := len (jobList )
72
73
var jobTimings []data_collector.JobInfo
74
+ const jobNameWidth = 30
73
75
74
76
for _ , job := range jobList {
75
- fmt .Printf ("Running job %s..." , job .Name )
76
-
77
+ fmt .Printf ("Running job %s" , job .Name )
78
+ // Calculate number of dots needed
79
+ dots := jobNameWidth - len (job .Name )
80
+ if dots < 0 {
81
+ dots = 0
82
+ }
83
+ fmt .Printf ("%s " , strings .Repeat ("." , dots ))
77
84
// Record job start and end time to calculate duration
78
85
jobStartTime := time .Now ()
79
86
err , skipped , files := job .Collect (& collector )
You can’t perform that action at this time.
0 commit comments