Before the proposed change the export command creates files in the same directory as the workspace. The proposed changes add a new functionality to the export command - the output option allows to specify a relative or absolute path to the directory, where files should be created.
Example 1 - run export command without options - outputs help with the new option.
C:\github\safor\structurizr-cli\build\libs> java -jar structurizr-cli-1.4.4.jar export
Structurizr CLI v1.4.4
Missing required options: w, f
usage: export
-f,--format <arg> Export format:
plantuml|websequencediagrams|mermaid|ilograph|json
-o,--output <arg> Path to an output directory
-w,--workspace <arg> Path or URL to the workspace JSON file/DSL file(s)
Example 2 - run export command without output option - creates files in the same directory as the workspace.
Example 5 - run export command with relative hierarchical output folder - hierarchy of output folders is created in the same directory as the workspace.
Before the proposed change the
export
command creates files in the same directory as the workspace. The proposed changes add a new functionality to theexport
command - theoutput
option allows to specify a relative or absolute path to the directory, where files should be created.Example 1 - run
export
command without options - outputs help with the new option.Example 2 - run
export
command withoutoutput
option - creates files in the same directory as the workspace.Example 3 - run
export
command with emptyoutput
option - displays help.Example 4 - run
export
command with relative output folder - output folder is created in the same directory as the workspace.Example 5 - run
export
command with relative hierarchical output folder - hierarchy of output folders is created in the same directory as the workspace.Example 6 - run
export
command from different location - output folder is created in the same directory, where application was executed.Example 7 - run
export
command with output directry specified as absolute path - output directory is created at the specified path.