File: status.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-- 740 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/github/status.h";

parser github_notification_subject is
object of struct gcli_notification with
	("title" => title as string,
	 "type"  => type as github_notification_target_type,
	 "url"   => target as url_path);

parser github_notification_repository is
object of struct gcli_notification with
	("full_name" => repository as string);

parser github_notification is
object of struct gcli_notification with
	("updated_at" => date as string,
	 "id"         => id as string,
	 "reason"     => reason as string,
	 "subject"    => use parse_github_notification_subject,
	 "repository" => use parse_github_notification_repository);

parser github_notifications is array of struct gcli_notification
	use parse_github_notification;