structurizr / dsl

Structurizr DSL
https://docs.structurizr.com/dsl
Apache License 2.0
1.41k stars 266 forks source link

Make `getFile` available in DSL scripts #332

Closed toorog closed 1 year ago

toorog commented 1 year ago

Description

All properties of StructurizrDslPluginContext are available within a !script. I need to access the getFile() property as well, because my script relies on files that are located in the same directory as the workspace.dsl. Otherwise there is no chance for the script to know the directory the DSL file is located in.

TLDR: Request is to make the workspace file property of StructurizrDslPluginContext available to scripts

Priority

Low

Resolution

I have no budget, please add this feature for free

More information

No response

simonbrowndotje commented 1 year ago

Once released, you'll be able to do context.getDslFile().