drush command runner for Wodby aliases
Save the file in /usr/local/bin/ (or anywhere else as long as it is in your $PATH) and verify that it is executable.
a. Right click on "Raw" button (for drcmd) and copy the URL.
b. curl -Lo /usr/local/bin/drcmd https://gist.githubusercontent.com/esolitos/......../drcmd (Use the url from step a.)
c. chmod a+x /usr/local/bin/drcmd
d. which drcmd should return you the above path, if not you should add /usr/local/bin to your $PATH.
e. Profit
To execute the user-login action on an alias just run drcmd followed by a portion of the alias name. This will default on the Live instance.
If more results will match you'll be promted to chose which one the comand shouyld be run into.
For example
drcmd ramswill match an alias like@wodby.foo.ramsalt.liveand run drush commanduli.
If you want to run uli in a differetn instance, just pass part of the name as the 2nd parameter
For example:
drcmd rams devwill match@wodby.foobar.ramsalt.devand run drush commanduli.
Any more parameter passed is directly forwarded to drush, by default of no other parameter is passed the script assumes "user-login".
You can also pass flags and options to drush see the examples.
drcmd foo dev sshwill run drush commandssh.drcmd foo dev core-cron --verbosewill run drush commandcore-cronwith the--verboseoption.
Protip: Try using a single letter (or maybe two) for sitename and for the instance name, often it just works: drcmd pa l status