Skip to main content

Module envelope

Module envelope 

Source
Expand description

The CLI ↔ Emacs result envelope (A5): a single s-expression the binary prints for domain commands, which org-gdocs.el reads with (read …).

Shape:

(ok    <command> (<key> <value>) …)
(error <command> "<message>")

<command> is a bare symbol (push/pull/clean/open/auth); each field is a (key value) list so elisp can assq it. This is JSON-free by design — see crate::sexp.

Functions§

error
Build an error envelope: (error <command> "<message>").
flag
The Emacs-lisp boolean symbol for a flag.
ok
Build a success envelope: (ok <command> (key value) …).