MermaidPharo

Description

Pharo generate mermaid diagram

Details

Source
GitHub
Dialect
pharo (65% confidence)
Stars
2
Created
March 1, 2022
Updated
March 28, 2026
Topics
mermaidjs pharo

README excerpt

# MermaidPharo

[![CI](https://github.com/badetitou/MermaidPharo/actions/workflows/CI.yml/badge.svg)](https://github.com/badetitou/MermaidPharo/actions/workflows/CI.yml)
[![Coverage Status](https://coveralls.io/repos/github/badetitou/MermaidPharo/badge.svg?branch=main)](https://coveralls.io/github/badetitou/MermaidPharo?branch=main)

You can use mle to generate [MermaidJS](https://mermaid-js.github.io) diagram from Pharo.

## Installation

```st
Metacello new
  githubUser: 'badetitou' project: 'MermaidPharo' commitish: 'main' path: 'src';
  baseline: 'MermaidPharo';
  load
```

## Example

```st
P2M new
 pharoClasses: MeEntity allSubclasses;
 generateClassDiagram
```

## Moose Example

After loading the `moose` group, a common usage is:

```st
diagram := M2M new
	metamodel: GLHModel resetMetamodel;
	withoutBlock: [ :class | (class name endsWith: #Model) 
		or: [ class package name ~= GLHModel class package name
			or: [ (class name endsWith: #Entity) ] ]];
	generateClassDiagram.
```

> The without block enable to only select the interesting entities of the metamodel
← Back to results