feat: partially added filters to GitRepo CLI
This commit is contained in:
parent
1e079143cd
commit
5e81dadce3
5 changed files with 60 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
module db
|
||||
|
||||
[params]
|
||||
pub struct GitRepoFilter {
|
||||
pub mut:
|
||||
limit u64 = 25
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ pub fn git_repo_from_params(params map[string]string) ?GitRepo {
|
|||
|
||||
// get_git_repos returns all GitRepo's in the database.
|
||||
pub fn (db &VieterDb) get_git_repos(filter GitRepoFilter) []GitRepo {
|
||||
println(filter)
|
||||
// This seems to currently be blocked by a bug in the ORM, I'll have to ask
|
||||
// around.
|
||||
if filter.repo != '' {
|
||||
|
|
|
|||
Reference in a new issue