mix tlx.gen.from_state_machine
(TLX v0.5.2)
Copy Markdown
Generate a TLX spec skeleton from a GenStateMachine module.
Usage
mix tlx.gen.from_state_machine MyApp.MyStateMachine
mix tlx.gen.from_state_machine MyApp.MyStateMachine --output my_spec.ex
mix tlx.gen.from_state_machine MyApp.MyStateMachine --format codegenParses the module's source code to extract states, events, and
transitions via AST analysis. Generates either a TLX.Patterns.OTP.StateMachine
module (default) or a defspec skeleton via codegen.
Options
--output,-o— write to a file instead of stdout--format,-f— output format:pattern(default) orcodegen