mix sexy.tdl.generate_types (Sexy v0.10.0)

Copy Markdown View Source

Generate Sexy.TDL.Object and Sexy.TDL.Method structs from a TDLib 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/types.json

It 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

run(args)

Callback implementation for Mix.Task.run/1.