Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
how to define rsync options in drush.yml #3491
I'm trying to add some rsync options in the
I tried with
but it's not working. While directly via
I assume the problem is because it needs
Any idea how that works?
The consolidation/config feature to define additional command options in configuration does not work for additional arguments. The reason for this is that if an argument was defined in configuration, there would be no clear way to override or remove it.
Perhaps this behavior could be extended to include settings for additional options: things that appear after a
Strictly speaking, this would be a feature request for https://github.com/consolidation/config
Still not sure that we have 100% identified how this should behave. For example, what if the current drush.yml was configured as above, and the command line was:
Would that result in
What if the configuration was
I understand your concerns @greg-1-anderson, but I feel it's a bit over-engineered. Not many people use fancy rsync commands (I think)
in the upper example I would expect
if it's well documented I think people will be happy
@Schnitzel, I'm with @greg-1-anderson on this. It is common that projects have drush .yml files inside it, so you can do a release to an Acceptation or Test environment with a release tool like Jenkins. All drush commands are executed but the rsync command doesn't include the --delete option right now.
Is anyone getting further with this issue?