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.
Click to show internal directories.
Click to hide internal directories.