feat(cli): added more advanced date flags for BuildLog CLI
All checks were successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/docker Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
Jef Roosens 2022-05-29 22:16:39 +02:00
parent 401e0291e3
commit a4ffc2c0e3
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 51 additions and 7 deletions

View file

@ -68,6 +68,8 @@ pub fn init(db_path string) ?VieterDb {
}
}
// row_into<T> converts an sqlite.Row into a given type T by parsing each field
// from a string according to its type.
pub fn row_into<T>(row sqlite.Row) T {
mut i := 0
mut out := T{}