forked from vieter-v/vieter
feat(cli): added some filter flags to GitRepo CLI
This commit is contained in:
parent
a39c1aa5eb
commit
401e0291e3
5 changed files with 77 additions and 22 deletions
|
|
@ -24,8 +24,6 @@ pub fn (db &VieterDb) get_build_logs(filter BuildLogFilter) []BuildLog {
|
|||
where_parts << "arch == '$filter.arch'"
|
||||
}
|
||||
|
||||
println(filter.exit_codes)
|
||||
|
||||
mut parts := []string{}
|
||||
|
||||
for exp in filter.exit_codes {
|
||||
|
|
@ -33,7 +31,7 @@ pub fn (db &VieterDb) get_build_logs(filter BuildLogFilter) []BuildLog {
|
|||
code := exp[1..].int()
|
||||
|
||||
parts << 'exit_code != $code'
|
||||
}else {
|
||||
} else {
|
||||
code := exp.int()
|
||||
|
||||
parts << 'exit_code == $code'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue