diff options
author | Peter Feigl <craven@gmx.net> | 2012-12-06 22:12:13 +0100 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-12-08 09:30:19 -0400 |
commit | 102f58d7a4532aa5f7a21edfd24758be864ea8d4 (patch) | |
tree | 4aae8e9c7683d118fb5ef41fce624df3c70fb68f /devel | |
parent | 1bf3720b6eaca6698f25781a7d299afcbd7a4be8 (diff) |
Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.
This patch uses the new S-Expression printer in the notmuch CLI (show,
search and reply). You can now use --format=sexp for any of them.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/schemata | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/schemata b/devel/schemata index e5c55050..d1ab983a 100644 --- a/devel/schemata +++ b/devel/schemata @@ -1,5 +1,5 @@ This file describes the schemata used for notmuch's structured output -format (currently JSON). +format (currently JSON and S-Expressions). []'s indicate lists. List items can be marked with a '?', meaning they are optional; or a '*', meaning there can be zero or more of that @@ -8,6 +8,12 @@ values. An object field marked '?' is optional. |'s indicate alternates (e.g., int|string means something can be an int or a string). +For S-Expression output, lists are printed delimited by () instead of +[]. Objects are printed as p-lists, i.e. lists where the keys and values +are interleaved. Keys are printed as keywords (symbols preceded by a +colon), e.g. (:id "123" :time 54321 :from "foobar"). Null is printed as +nil, true as t and false as nil. + Common non-terminals -------------------- |