-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions on how you envisioned this working? issues with flags.. i.e. --version doesn't work #7
Comments
Hi Hanoii I need to take a look and see how this is working in those conditions. I don't think it's the intended functionality and will take a look into this hopefully this week. Thanks, |
Hi Hanoii, I'm finally getting back around to this. It appears that the I'll do some more work on this piece since obviously this isn't working as expected. I've finally found some time to look into this. Sorry for the delay. |
I'll do some digging, but the docs indicate that I can use this to capture the flags I've not set. This has to be done before flag.parse, which is done Here From then I can parse the list and add the options back in. I think I understand the issue at this point. Let me see if I can dig in a bit further. Thanks, Tommy. |
I'm approaching a point where I need to replace this on our internal servers and will have some more time to actually look into this. We need the switch options as well. I assume by end of year I should have this wrapped up and will likely be using it in a production environment. |
@dasginganinja I wanted to let you know that I wrote a bash alternative based on your approach https://github.com/tvlooy/drush-launcher It seemed less complex / easier to maintain. I don't know what the advantages are of doing this in Go? |
@tvlooy I had implemented this in Bash at first. I wanted to have a framework for something testable as well. Go seemed like a fantastic framework for that. I took a look at this code last week that I had proposed in the branch and that didn't work. I'll see if we can get that fixed this week since we finally have time to put some eyes on this. Thanks, |
I think this is ready for review if anybody wants to run |
It is now not required to use double dashes |
I came here from drush-ops/drush-launcher#105, I downloaded it on a docker container I have two codebases.
Ideally, I'd like it to use it as the previous launcher, where I'd call drush anywhere and it will pick up the drupal one. I assume I could rename this launcher to drush and put it somewhere in the path and it should work, haven't tested this though so pointers appreciated.
The one thing that didn't work is
drush-launcher --version
, it outputs the error from the launcher. I obviously trieddrush-launcher -- --version
which worked, but It would be ideal if it would be a default replacement.Thanks for the contribution.
The text was updated successfully, but these errors were encountered: