Skip to content

Instantly share code, notes, and snippets.

@colmeye
colmeye / snowstate_diagram.py
Last active March 16, 2024 17:30
SnowState - Mermaid Diagram Generator
# ------------------------------------------------------------------------------------------------
# This script documents SnowState transitions by creating a mermaid diagram.
# You must be using SnowState's `add_transition` function to get output from this script.
#
# Arguments:
# ```
# -i, --input_path: The input file or directory path to recursively search for transitions.
# -o, --output_directory: The directory to output files to. Defaults to the current directory.
# --html: Flag to output files as easily viewable HTML files instead of .mermaid files.
# ```