Skip to content

feat: Generate StateMachine diagram from cmd line#311

Merged
fgmacedo merged 1 commit intodevelopfrom
macedo/graph-cmd-line
Jan 11, 2023
Merged

feat: Generate StateMachine diagram from cmd line#311
fgmacedo merged 1 commit intodevelopfrom
macedo/graph-cmd-line

Conversation

@fgmacedo
Copy link
Copy Markdown
Owner

@fgmacedo fgmacedo commented Jan 11, 2023

Generate a StateMachine diagram from the command line.

❯ python -m statemachine.contrib.diagram --help
usage: diagram.py [OPTION] <classpath> <out>
Generate diagrams for StateMachine classes.
positional arguments:
  classpath   A fully-qualified dotted path to the StateMachine class.
  out         File to generate the image using extension as the output format.
optional arguments:
  -h, --help  show this help message and exit

Examples:

python -m statemachine.contrib.diagram tests.examples.guess_the_number_machine.GuessTheNumberMachine number.pdf

number.pdf

python -m statemachine.contrib.diagram tests.examples.guess_the_number_machine.GuessTheNumberMachine number.png

number

@fgmacedo fgmacedo added this to the 1.0.0 milestone Jan 11, 2023
@fgmacedo fgmacedo force-pushed the macedo/graph-cmd-line branch from f9aae7c to eeb3e3f Compare January 11, 2023 16:26
@fgmacedo fgmacedo merged commit 05fe36d into develop Jan 11, 2023
@fgmacedo fgmacedo deleted the macedo/graph-cmd-line branch January 11, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant