mix lexgen (lexgen v1.0.0)
Generates Elixir source code from AT Protocol lexicons. Lexicons are JSON files which define records, objects, queries, and other parts of the AT Protocol data model.
By default, this will generate files to ./lib/atproto
. The destination folder can be overridden using the --output
(or -o
) option.
Every non-option argument passed in is assumed to be a path to one or more Lexicon files. If specifying more than one Lexicon input, you may either specify each file individually or use glob-style file patterns (e.g. lexicons/**/*.json
).
Options
-o, --output
: The destination folder for the generated files.-d, --delete
: Deletes all existing files in the destination folder before generating new files.