mix tlx.gen.from_ash_state_machine
(TLX v0.5.2)
Copy Markdown
Generate a TLX spec skeleton from an Ash resource with AshStateMachine.
Usage
mix tlx.gen.from_ash_state_machine MyApp.Order
mix tlx.gen.from_ash_state_machine MyApp.Order --output order_spec.ex
mix tlx.gen.from_ash_state_machine MyApp.Order --format codegenReads the module's AshStateMachine configuration via runtime introspection.
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