structurizr / cli

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

Allow structurizr.bat to be called from any directory #3

Closed safor closed 4 years ago

safor commented 4 years ago

This change allows to run the structurizr.bat script from any relative directory.

Having the following directory structure

bin
    structurizr.bat
    structurizr-cli-1.4.0.jar

Running bin\structurizr.bat produced an error without this change

> bin\structurizr.bat
Error: Unable to access jarfile structurizr-cli-1.4.0.jar

With the change

> bin\structurizr.bat
Structurizr CLI v1.4.0
Usage: structurizr push|pull|export [options]

Similar change was contributed in https://github.com/structurizr/cli/pull/1

simonbrowndotje commented 4 years ago

Thanks!