Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg file (or puml file) only contains one box #61

Open
MappingSteve opened this issue Oct 13, 2020 · 2 comments
Open

svg file (or puml file) only contains one box #61

MappingSteve opened this issue Oct 13, 2020 · 2 comments

Comments

@MappingSteve
Copy link

MappingSteve commented Oct 13, 2020

E.g.

tplant --input test/Playground/Inheritance/*.ts --output test/Playground/Inheritance.svg

results in a single box, that describes the Animal class.

tplant --input test/Playground/Inheritance/*.ts --output test/Playground/Inheritance.puml

results in:

@startuml
class Animal {
+name: string
+move(distanceInMeters?: number): void
}
@enduml

Presumably there should be other boxes, such as Horse.

Running on Win 10, via MINGW64 git-bash terminal window.

@MappingSteve MappingSteve changed the title svg file only contains one class svg file only contains one box Oct 13, 2020
@MappingSteve MappingSteve changed the title svg file only contains one box svg file (or puml file) only contains one box Oct 13, 2020
@MappingSteve
Copy link
Author

MappingSteve commented Oct 13, 2020

UPDATE: I discovered that specifying Horse.ts does better:

tplant --input test/Playground/Inheritance/Horse.ts --output test/Playground/Horse.puml

outputs:

@startuml
class Animal {
+name: string
+move(distanceInMeters?: number): void
}
class Horse extends Animal {
+move(distanceInMeters?: number): void
}
@enduml

Likewise, ".svg" output shows two boxes, with arrow from Horse to Animal.

@BillyBobFry
Copy link

You need to wrap your glob in single quotes:
tplant --input 'test/Playground/Inheritance/*.ts' --output test/Playground/Inheritance.svg

This is because your shell is immediately converting the glob string to the first matching file (test/Playground/Inheritance/Animal.ts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants