Generate Sexy.TDL.Object and Sexy.TDL.Method structs from a TDLib schema.
Accepts either td_api.tl (shipped in the TDLib source tree at
td/generate/scheme/td_api.tl — no TDLib build needed) or a legacy
types.json. Run this inside the sexy repository (or a fork/vendored
copy) when a new TDLib version ships:
mix sexy.tdl.generate_types /path/to/td_api.tl
mix sexy.tdl.generate_types /path/to/types.jsonIt overwrites lib/tdl/object.ex and lib/tdl/method.ex — the files shipped
with the library.
Running it in a consumer project is refused: the generated modules would
duplicate the ones already compiled in the :sexy dependency, and
mix release fails on duplicated modules. Pass --force only if you know
exactly why you need that.
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
Callback implementation for Mix.Task.run/1.