Fix assignee filter bug in List
This commit is contained in:
14
cmd/rel.go
Normal file
14
cmd/rel.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"axolotl/models"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func parseRelFlag(s string) (models.RelType, string, error) {
|
||||
if p := strings.SplitN(s, ":", 2); len(p) == 2 {
|
||||
return models.RelType(p[0]), p[1], nil
|
||||
}
|
||||
return "", "", fmt.Errorf("invalid relation format: %s (expected type:id)", s)
|
||||
}
|
||||
Reference in New Issue
Block a user