File: gists.t

package info (click to toggle)
gcli 2.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,652 kB
  • sloc: ansic: 27,086; sh: 678; makefile: 545; perl: 392; yacc: 261; lex: 60
file content (23 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include "gcli/json_util.h";
include "gcli/github/gists.h";

parser github_gist_file is
object of struct gcli_gist_file with
	("filename" => filename as string,
	 "language" => language as string,
	 "raw_url"  => url as string,
	 "size"     => size as size_t,
	 "type"     => type as string);

parser github_gist is
object of struct gcli_gist with
	("owner"        => owner as user,
	 "html_url"     => url as string,
	 "id"           => id as string,
	 "created_at"   => date as string,
	 "git_pull_url" => git_pull_url as string,
	 "description"  => description as string,
	 "files"        => use parse_github_gist_files_idiot_hack);

parser github_gists is array of struct gcli_gist
	use parse_github_gist;