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

Add C4Version() functions which displays the PlantUML version and C4-PlantUML version #181

Closed
kirchsth opened this issue Aug 28, 2021 · 0 comments · Fixed by #182
Closed
Milestone

Comments

@kirchsth
Copy link
Contributor

kirchsth commented Aug 28, 2021

Like the PlantUML '%version()' function a C4Version() a and C4VersionDetails() function should be added that the active C4-PlantUML version can be checked too.

Eg.

@startuml
!include <C4/C4_Container.puml>

' existing plantuml version as text
%version()

' new C4-Plantuml version as text 
C4Version()

' new C4-Plantuml version details (incl. PlantUML version) as table
C4VersionDetails()

' version functions used in e.g. footer
footer drawn with PlantUML v. %version() and C4-PlantUML v. C4Version()
@enduml

Image was drawn with

@startuml
!include <C4/C4_Container.puml>

' >>>>>>>>>>>>>>>> new functions
!function C4Version()
  !return "2.3.2beta1"
!end function

!procedure C4VersionDetails()
rectangle C4VersionDetailsArea <<legendArea>> [
| PlantUML | **%version()** |
| C4-PlantUML | **C4Version()** |
]
!end procedure
' new functions <<<<<<<<<<<<<<<<

' existing plantuml version as text
%version()

' new C4-Plantuml version as text 
C4Version()

' new C4-Plantuml version details (incl. PlantUML version) as table
C4VersionDetails()

' version functions used in e.g. footer
footer drawn with PlantUML v. %version() and C4-PlantUML v. C4Version()
@enduml
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Aug 28, 2021
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Aug 28, 2021
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Aug 28, 2021
@kirchsth kirchsth changed the title Add a "C4 version" functions which displays the PlantUML version and C4-PlantUML version (in a note) Add a "C4 version" functions which displays the PlantUML version and C4-PlantUML version Aug 28, 2021
@kirchsth kirchsth added this to the v2.3.1 milestone Aug 28, 2021
@kirchsth kirchsth changed the title Add a "C4 version" functions which displays the PlantUML version and C4-PlantUML version Add "C4 version" functions which displays the PlantUML version and C4-PlantUML version Aug 29, 2021
@Potherca Potherca modified the milestones: v2.3.1, v2.4.0 Aug 31, 2021
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Sep 3, 2021
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Sep 3, 2021
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Sep 3, 2021
Potherca added a commit that referenced this issue Sep 7, 2021
#181 Add version information calls `C4Version()` and `C4VersionDetails()`
@kirchsth kirchsth changed the title Add "C4 version" functions which displays the PlantUML version and C4-PlantUML version Add C4Version() functions which displays the PlantUML version and C4-PlantUML version Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants