File: snippets.t

package info (click to toggle)
gcli 2.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,596 kB
  • sloc: ansic: 26,273; sh: 601; makefile: 538; perl: 374; yacc: 261; lex: 59
file content (15 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include "gcli/json_util.h";
include "gcli/gitlab/snippets.h";

parser gitlab_snippet is
object of struct gcli_gitlab_snippet with
	("title"      => title as string,
	 "id"         => id as id,
	 "raw_url"    => raw_url as string,
	 "created_at" => date as string,
	 "file_name"  => filename as string,
	 "author"     => author as user,
	 "visibility" => visibility as string);

parser gitlab_snippets is
array of struct gcli_gitlab_snippet use parse_gitlab_snippet;