I want to run one interactive PHP script after composer update or composer install automatically from composer.json file like:
"scripts": {
"raven-cmd": [
"php bin/console kolesar:boilerplate:setup"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts",
"@kolesar-cmd"
],
"post-update-cmd": [
"@auto-scripts",
"@kolesar-cmd"
]
},
Symfony command php bin/console kolesar:boilerplate:setup is interactive script what expect some user inputs, but this does not work. The interactive mode does not works, exactly.
Any hint, how to solve this? Or maybe have another idea to force set up after composer update/install?
On windows add
< CONto the end of the command