5677 cross platform alias syntax#5678
Closed
timotheemoulin wants to merge 9888 commits intowp-cli:masterfrom
Closed
5677 cross platform alias syntax#5678timotheemoulin wants to merge 9888 commits intowp-cli:masterfrom
timotheemoulin wants to merge 9888 commits intowp-cli:masterfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
aliasesconfiguration entry in the wp-cli.yml file--alias=fooinstead of@footo use an aliasNew wp-cli.yml config entry
aliasesExample of a working configuration.
Global config file
Local config file
When using the
aliasesconfig entry, there is no need to prefix the alias name with@. Every key in this hash is recognized as a valid alias name.@alland other group features seem to be working properly (though I never had them working on Windows due sur sub-PHP process command not knowing where to find thesshcommand).New CLI parameter
--aliasInstead of using the
@aliaspositional parameter, you can now use the--alias=fooparam.This improves the Windows CLI compatibility as
@is a reserved char (like$or`) and need to be quoted to work properly.--alias=param works well with both classic alias definition and the new. And it works exactly the same for groups.