pyfcstm.entry.generate
Command-line interface integration for state machine code generation.
This module wires a generate subcommand into a Click command group so that
users can generate source code from a state machine DSL file. The subcommand
reads the DSL file, parses it into an AST, converts the AST into a state machine
model, and renders code using template files.
The module is intended to be imported by CLI entry-point modules that assemble
Click command groups. It does not expose public helpers; the main integration
point is the internal _add_generate_subcommand() used by the package’s
CLI bootstrap code.
Example:
>>> import click
>>> from pyfcstm.entry.generate import _add_generate_subcommand
>>> app = click.Group()
>>> _ = _add_generate_subcommand(app)
>>> # The resulting app now includes the "generate" subcommand.