genworkflowmmd

command
v1.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

genworkflowmmd regenerates Mermaid diagrams for every workflow graph endpoint exposed by a microservice. It AST-scans the microservice directory for methods on *Service of the form

func (svc *Service) Foo(ctx context.Context) (graph *workflow.Graph, err error)

generates a throwaway main program under <microservice>/tmp/ that imports the microservice package, instantiates the service, invokes each graph builder, and writes workflow.NewGraphRenderer(g).Render() to <microservice>/<METHOD>.mmd, runs it with `go run`, and deletes the tmp directory.

Mechanizes the housekeeping skill's "Visualize Workflows" step so it can be invoked unattended from a script or CI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL