feat(client): added client code for logs API

This commit is contained in:
Jef Roosens 2022-05-07 19:38:28 +02:00
parent 407b226955
commit fa6603bd45
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
8 changed files with 81 additions and 29 deletions

View file

@ -160,7 +160,6 @@ fn patch(conf Config, id string, params map[string]string) ? {
id_int := id.int()
if id_int != 0 {
c := client.new(conf.address, conf.api_key)
res := c.patch_git_repo(id_int, params) ?
@ -176,7 +175,7 @@ fn info(conf Config, id string) ? {
return
}
c := client.new(conf.address, conf.api_key)
c := client.new(conf.address, conf.api_key)
repo := c.get_git_repo(id_int) ?
println(repo)
}