Skip to content

Commit b1ccefa

Browse files
update to make tags and version comma separated if multiple items
1 parent 8fc2147 commit b1ccefa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/connector/conn_list.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"io"
88
"net/http"
99
"sort"
10+
"strings"
1011

1112
"github.com/olekukonko/tablewriter"
1213
"github.com/sailpoint-oss/sailpoint-cli/internal/client"
@@ -95,8 +96,9 @@ func newConnListCmd(client client.Client) *cobra.Command {
9596
tagNames = append(tagNames, t.TagName)
9697
versions = append(versions, fmt.Sprintf("%d", t.ActiveVersion))
9798
}
98-
tagsString := fmt.Sprintf("%s", tagNames)
99-
versionsString := fmt.Sprintf("%s", versions)
99+
// Format the tags and versions as comma-separated lists
100+
tagsString := strings.Join(tagNames, ", ")
101+
versionsString := strings.Join(versions, ", ")
100102

101103
// Add the row to the table
102104
row := []string{

0 commit comments

Comments
 (0)