cli depth doesnt require mindepth
cicd / ci (push) Successful in 45s
Details
cicd / ci (push) Successful in 45s
Details
parent
fabd26e8e9
commit
1805a087e0
|
|
@ -70,11 +70,13 @@ func Main() {
|
||||||
|
|
||||||
pattern := ".*"
|
pattern := ".*"
|
||||||
if depth := config.Query.Depth; depth > 0 {
|
if depth := config.Query.Depth; depth > 0 {
|
||||||
|
patterns := []string{}
|
||||||
pattern = ""
|
pattern = ""
|
||||||
for i := 0; i < depth; i++ {
|
for i := 0; i < depth; i++ {
|
||||||
pattern += "[^:]*:"
|
pattern += "[^:]*:"
|
||||||
|
patterns = append([]string{strings.Trim(pattern, ":")}, patterns...)
|
||||||
}
|
}
|
||||||
pattern = strings.Trim(pattern, ":")
|
pattern = strings.Join(patterns, "|")
|
||||||
}
|
}
|
||||||
group := ledger.GroupName(pattern)
|
group := ledger.GroupName(pattern)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue