You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there are a few things I've not been able to find matches for, starting with drush_get_command() - is there an easy way to get the whole command that was given to bee?
Additionally, when I'm in a module's normal operations and do not have access to the callback function's arguments, how do I get the options and arguments that were passed along with the command? (In Drush this was done with drush_get_arguments() and drush_get_options())
For example, there is a elysia_cron_debug() function that will put it's debug information in watchdog OR print output to drush (and now bee) - but from within that function I can nolonger reach anything specific to the bee callback. Do you have a recommendation for how to best approach these situations?
The text was updated successfully, but these errors were encountered:
Wiki pages are normally populated from the docs folder (I need to make this clearer) and are normally locked down but I guess your superpowers give you access. I could copy your edits to the relevant file, but it will then have my name against the edits. Are you ok to make those edits in the docs file either as a PR, or if you want to just do a commit, I've fine with that from you?
Bee has two globals - $_bee_arguments and $_bee_options that functions use to get arguments. There is also $_bee_command that will give you the command
Looking at that modules code, it uses a global variable to pass from drush to the module: $_elysia_cron_drush
@yorkshire-pudding I've taken the liberty of updating the
Converting integrations from Drush
wiki page to include some of the conversions I needed to research as part of elysia_cron's bee implementation.But there are a few things I've not been able to find matches for, starting with
drush_get_command()
- is there an easy way to get the whole command that was given to bee?Additionally, when I'm in a module's normal operations and do not have access to the callback function's arguments, how do I get the options and arguments that were passed along with the command? (In Drush this was done with
drush_get_arguments()
anddrush_get_options()
)For example, there is a
elysia_cron_debug()
function that will put it's debug information in watchdog OR print output to drush (and now bee) - but from within that function I can nolonger reach anything specific to the bee callback. Do you have a recommendation for how to best approach these situations?The text was updated successfully, but these errors were encountered: