File: releases.t

package info (click to toggle)
gcli 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 25,411; sh: 580; makefile: 509; yacc: 261; lex: 59
file content (22 lines) | stat: -rw-r--r-- 731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include "gcli/releases.h";

parser github_release_asset is
object of struct gcli_release_asset with
	("browser_download_url" => url as string,
	 "name"                 => name as string);

parser github_release is
object of struct gcli_release with
	("name"       => name as string,
	 "body"       => body as string,
	 "id"         => id as int_to_string,
	 "author"     => author as user,
	 "created_at" => date as iso8601_time,
	 "draft"      => draft as bool,
	 "prerelease" => prerelease as bool,
	 "assets"     => assets as array of gcli_release_asset
	                 use parse_github_release_asset,
	 "upload_url" => upload_url as string);

parser github_releases is array of struct gcli_release
	use parse_github_release;