Skip to content

Commit 06d16ff

Browse files
authored
use key=value for --set-label (#171)
This makes it uniform with the file format
1 parent 6f490c0 commit 06d16ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/config/smarttest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ func (rl RunLabels) String() string {
4242
if i != 0 {
4343
fmt.Fprintf(res, ",")
4444
}
45-
fmt.Fprintf(res, "%s:%s", key, rl[key])
45+
fmt.Fprintf(res, "%s=%s", key, rl[key])
4646
}
4747
return res.String()
4848
}
4949

5050
func (rl RunLabels) Set(v string) error {
51-
key, val, ok := strings.Cut(v, ":")
51+
key, val, ok := strings.Cut(v, "=")
5252
if !ok {
5353
return fmt.Errorf("%q should be in form <key>:<value>", v)
5454
}

0 commit comments

Comments
 (0)