Skip to content

Commit cb495d3

Browse files
committed
Change tags info format
1 parent 0727673 commit cb495d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cli/device/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (r listResult) String() string {
8484
device.Board,
8585
device.FQBN,
8686
device.Serial,
87-
strings.Join(device.Tags, ", "),
87+
strings.Join(device.Tags, ","),
8888
)
8989
}
9090
return t.Render()

cli/thing/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (r result) String() string {
101101

102102
for _, thing := range r.things {
103103
r := []interface{}{thing.Name, thing.ID, thing.DeviceID}
104-
r = append(r, strings.Join(thing.Tags, ", "))
104+
r = append(r, strings.Join(thing.Tags, ","))
105105
if listFlags.variables {
106106
r = append(r, strings.Join(thing.Variables, ", "))
107107
}

command/tag/tag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TagsInfo(tags map[string]interface{}) ([]string, error) {
2828
if !ok {
2929
return nil, fmt.Errorf("value of tag `%s` should be of type `string` but is of type `%T`", key, value)
3030
}
31-
str = append(str, key+": "+valStr)
31+
str = append(str, key+"="+valStr)
3232
}
3333
return str, nil
3434
}

0 commit comments

Comments
 (0)