Quote handling with Commands differs to the standard Craft CLI processing #121
jamesmacwhite
started this conversation in
Feature Requests & Enhancements
Replies: 1 comment
-
|
I could bypass the Craft Console interface entirely and call the resave/entries controller from a migration or the ResaveElements queue job and provide my own criteria and parameters, but it would be nice for Craft Console to be more flexible for complex commands that use quotes and such. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I believe there's some specific quote handling going on in the Cloud Yii Extension which makes running more complex commands with Craft CLI difficult to execute through Craft Console, particularly if using the fn arrow function. Example:
Executing this on a local environment with Craft CLI works fine, executing on Craft Cloud through Craft Console, the received queue job errors immediately with:
It would appear that the handling of quotes is different, and therefore examples cannot be run directly e.g. examples taken from the docs, which makes it harder to run commands on a Craft Cloud environment.
There is an open PR on the Cloud Extension around this topic I believe: craftcms/cloud-extension-yii2#73
It would be a nice improvement, given you have specifically update commands to work in Craft Console.
Beta Was this translation helpful? Give feedback.
All reactions