Skip to content

Commit 696c909

Browse files
committed
feat(installer): add mods count in *templateUpdateResults.String
Signed-off-by: Dwi Siswanto <[email protected]>
1 parent 4ae00c2 commit 696c909

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/installer/template.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,15 @@ type templateUpdateResults struct {
4545
func (t *templateUpdateResults) String() string {
4646
var buff bytes.Buffer
4747
data := [][]string{
48-
{strconv.Itoa(t.totalCount), strconv.Itoa(len(t.additions)), strconv.Itoa(len(t.deletions))},
48+
{
49+
strconv.Itoa(t.totalCount),
50+
strconv.Itoa(len(t.additions)),
51+
strconv.Itoa(len(t.modifications)),
52+
strconv.Itoa(len(t.deletions)),
53+
},
4954
}
5055
table := tablewriter.NewWriter(&buff)
51-
table.SetHeader([]string{"Total", "Added", "Removed"})
56+
table.SetHeader([]string{"Total", "Added", "Modified", "Removed"})
5257
for _, v := range data {
5358
table.Append(v)
5459
}

0 commit comments

Comments
 (0)