Closed jean closed 2 years ago
I have been running into the same issue a few times in the past so I would welcome a change that allows symlinking the .sh script out of the box.
I'm not a *nix expert I'm afraid, and have tried a few things, but didn't find anything that worked across multiple platforms (e.g. readlink -f
doesn't work on my Mac, but readlink
does). If you have an example of something that works, please do share. Otherwise, it might be easier to create your own script ... all you need to do is start a named Java application (com.structurizr.cli.StructurizrCliApplication
) with parameters.
I like to do e.g.
jean@X1:~/.local/bin$ ln -s ~/Downloads/structurizr/structurizr.sh
so that the command is on my path. This fails with the current script. The following works, but I don't know if it works in all the same places asBASH_SOURCE
:(I'd actually prefer to do
stow structurizr
(ref) but that works best if the zip contents look likestructurizr/{bin,doc,...}
.)