Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Make getFile available in DSL scripts #332

Closed
toorog opened this issue Aug 30, 2023 · 1 comment
Closed

Make getFile available in DSL scripts #332

toorog opened this issue Aug 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@toorog
Copy link

toorog commented Aug 30, 2023

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

@toorog toorog added the enhancement New feature or request label Aug 30, 2023
@simonbrowndotje
Copy link
Contributor

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants