mix tlx.gen.from_erlang
(TLX v0.5.2)
Copy Markdown
Generate a TLX spec skeleton from a compiled Erlang OTP module.
Usage
mix tlx.gen.from_erlang :my_erl_module
mix tlx.gen.from_erlang :my_erl_module --output my_spec.ex
mix tlx.gen.from_erlang :my_erl_module --format codegenReads the module's BEAM abstract_code to extract OTP structure.
Auto-detects behaviour (gen_server or gen_fsm) and generates either
a pattern module (default) or a defspec skeleton via codegen.
Requires the module to be compiled with debug_info.
Options
--output,-o— write to a file instead of stdout--format,-f— output format:pattern(default) orcodegen