The wp-cli command configuration has some mismatches with Windows Powershell.
e.g. the ALIAS_REGEX constant used to configure remote instances because it uses the @ symbol as a prefix.
@ is used (like the $ character as a variable prefix) to expand the variable (converts a string variable in an array).
|
const ALIAS_REGEX = '^@[A-Za-z0-9-_\.\-]+$'; |
Would that be possible to allow overriding the constant with some filter?
Alternative question, why are we using @prod structure to define the aliases in the wp-cli.yml instead of an array of values like disabled_commands or require?