archi: [ACLI] calling Archi CLI (through scoop shim) returns immediately instead of blocking until done
Archi Version
5.3.0
Operating System
Windows 11
Archi Plug-ins
No response
Description
I invoke the Archi CLI from a script to generate the HTML report, and then do some processing on the generated files. Previously when I called “Archi” the command did not return until the export was done, and then processing could take place. Now since a recent update, calling “Archi” returns immediately and the HTML export is generated in parallel, so the processing starts before it’s completed.
I haven’t been able to confirm this behaviour on Linux.
Running in git-bash, my ugly workaround is:
case "$OS" in
Windows*) while WMIC path win32_process get Commandline | grep -v grep | grep com.archimatetool.commandline.app >/dev/null ; do sleep 1 ; done
;;
esac
Steps to reproduce
From a shell in an archi collaboration repo, run: Archi -application com.archimatetool.commandline.app -consoleLog -nosplash --modelrepository.loadModel . --html.createReport output/html
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (10 by maintainers)
If you want to wait for the process to finish using PowerShell do something like this: