Conversation
|
Awesome! |
81db8cb to
d0af5ed
Compare
|
It may seem odd, but there are actually people using Windows 😉 So can we please also have a bin/perpl.bat alongside the bin/propel.bat? |
|
Hmm, that does sound weird. Why, who does that? But seriously, that means I have to rename propel.bat to perpl.bat and put |
|
Yeah, that wokeness never ends - it's just pandemic. Oops, I should not use this word - it also sounds like an invention of the woke industry. For sure, all those people live in a gated bubble or should I say - bubble of Gates? So let's keep them in their bubble and make it as big as it needs to be. So, in the .bat file, call %~f0 twice to make sure they stay in.
You can do it THAT way. Or you can just call perpl.php like you do it in the other files. But maybe I think too complicated. |
|
Why
The .bat file looks like this: @echo off
if "%PHPBIN%" == "" set PHPBIN=php
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
"%PHPBIN%" "bin\propel" %*I don't want to repeat that in case it ever get changed. |
Yes this variable contains the full path and filename of the file that is currently being executed. And if you call it with And yes somehow the current .bat file is also a bad joke that is not bad enough yet. For starters, I would schedule to run a .bat file on my computer on every logon that executes But unfortunately that joke would only work for me so I fear there is no way around editing a/the .bat file in the repo if we want others to have fun too. Or, we could do it the right way - but maybe that is just a crazy/woke idea of mine and also we would still have to edit something. |
73fd0bf to
97b63f9
Compare
Improves cli command error messages
Example output
Added hint section:
Used to say "Invalid database name: no configured connection named
$databaseName.":Used to say "No schema files were found (matching your schema fileset definition).":
This can still be further improved in a later PR.
Other minor fixes
./bin/perplexecutable next to./bin/propel/binwithout--config-dirparam (propel.phpwas treated as configuration file)perpl.json,perpl.yml.dist, etc