structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
492 stars 75 forks source link

DeploymentEnvironment cannot be extended via !ref #111

Closed AnnejanBarelds closed 1 year ago

AnnejanBarelds commented 1 year ago

It looks like a deploymentEnvironment element cannot be extended by using !ref. The CLI throws an error when I try it:

StructurizrDslParserException: Unexpected tokens (expected: deploymentGroup, deploymentNode, ->)

A minimal repro looks like this:

workspace {
    model {
        de = deploymentEnvironment "DeploymentEnvironment"

        !ref de {
            dn = deploymentNode "DeploymentNode"
        }
    }
}

Obviously the intend is to have the deploymentEnvironment in another file and !include that file.

Should this work, or am I misinterpreting something?