https://github.com/peteruhnak/st-plantuml
https://github.com/peteruhnak/st-plantuml
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peteruhnak/st-plantuml
- Owner: peteruhnak
- License: mit
- Created: 2018-07-02T13:09:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T09:51:54.000Z (almost 7 years ago)
- Last Synced: 2025-02-09T18:52:10.033Z (3 months ago)
- Language: Smalltalk
- Size: 12 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ST PlantUML
[](https://travis-ci.org/peteruhnak/st-plantuml) [](https://coveralls.io/github/peteruhnak/st-plantuml)A client to execute PlantUML from Pharo using a nailgun server.
## Installation
```smalltalk
Metacello new
baseline: 'PlantUML';
repository: 'github://peteruhnak/st-plantuml/repository';
load.
```## Usage
Launching nailgun
```bash
cd nailgun
java -jar nailgun.jar
```### Editor
```smalltalk
PlantUMLEditor open
```or use the *PlantUML* world menu.
### Client
To generate an image (a Form instance) use the `generate:do:` method on the client.
Generation is performed asynchronously. Once the result is available, the callback block is executed.```smalltalk
client := PlantUMLClient new.
client prepareClient.client generate: 'class Person {
- group : Group
}class Group {
- people : Person[*]
}Person "people" <--> "group" Group
' do: [ :aForm | aForm inspect ]
```