forked from vieter-v/vieter
feat(cli): added commands for interacting with build logs
This commit is contained in:
parent
fa6603bd45
commit
5b016df85d
7 changed files with 145 additions and 11 deletions
|
|
@ -27,6 +27,12 @@ pub fn (c &Client) get_build_log(id int) ?Response<BuildLog> {
|
|||
return data
|
||||
}
|
||||
|
||||
pub fn (c &Client) get_build_log_content(id int) ?string {
|
||||
data := c.send_request_raw_response(Method.get, '/api/logs/$id/content', {}, '') ?
|
||||
|
||||
return data
|
||||
}
|
||||
|
||||
pub fn (c &Client) add_build_log(repo_id int, start_time time.Time, end_time time.Time, arch string, exit_code int, content string) ?Response<string> {
|
||||
params := {
|
||||
'repo': repo_id.str()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue