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

Strive to make associations (rather than compositions) with cardinalities and navigability #72

Merged
merged 7 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ tplant --input test/Playground/Classes/Greeter.ts --output test/Playground/Class
Compile a project given a valid configuration file.
The argument can be a file path to a valid JSON configuration file, or a directory path to a directory containing a tsconfig.json file.

### -C, --compositions
Create not heritage compositions.
### -A, --associations
Show associations between classes with cardinalities
Example:
```typescript
class Wheel {
public size: number;
}
class Car {
public wheel: Wheel;
public wheel: Wheel[];
}
```
```plantuml
Expand All @@ -54,7 +54,7 @@ class Wheel {
class Car {
+wheel: Wheel
}
Car *-- Wheel
Car --> "*" Wheel
@enduml
```
### -I, --only-interfaces
Expand Down
Loading