def vendor.word
import ezx@1.11.0.0/src/ledger/render.bend as Renderimport Base
18# `true` when the tree is committed, and nothing when it is not, so the key
19# is absent rather than written as an empty string. It is written bare: in
20# TOML `vendor = "true"` is a string, and a reader other than ez, such as
21# nix's `builtins.fromTOML`, would take it for one. ez reads both spellings.
22def vendor.word(vend: Bool) -> String:
23 match vend:
24 case True{}:
25 "true"
26 case False{}:
27 ""