-
Notifications
You must be signed in to change notification settings - Fork 139
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
[Feature]: Integration flag for theme push
#3734
Comments
Seconding this. It feels as if this year there have been a number of breaking changes when it comes to using the CLI within a CI environment. Typically we'd just keep our CI pipelines pinned at a known good version of the CLI, however there does not seem to be one. More specially it seems as if Some other thoughts here is that the |
I would also like to see the above change and also see any
so a structure that always returns JSON would be ideal when passing in --json flag |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
This is still relevant and important. |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
Still relevant |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
still relevant |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
Still relevant |
|
Blocked by #3863 @knjshimi @notkurt Thanks for the feedback and suggestions :) - your input was relevant in discussions about how to approach this issue. We're trying to do change some foundational work in our rendering library to improve this experience across the board and adhere to CLI guidelines for output / logging. As such, I want to hold off on adding this feature until that work has been done - I'm hoping that those change will resolve this issue. Thanks for helping us improve the CLI! |
What area(s) will this request affect?
Theme
What type of change do you want to see?
New feature
Overview
Introduce a flag for integration mode for
theme push
.Example:
shopify theme push --ci
The output would consist only of a json string that includes the
theme
,errors
andwarnings
.Idea of the output:
Motivation
Be able to use Shopify CLI as part of a custom CLI wrapper. The Shopify team is constantly changing the output of its commands, like text formatting, usage of
stderr
andstdout
, adding/removing graphics, etc.I need a simple and consistent way of knowing the actual results, without having to manipulate strings to extract the information.
Previously,
shopify theme push --json
would suffice, but recent changes have made it very difficult to deal with.Now
stderr
is returning "main errors", whilestdout
is returning "error detail items" along with the actual json string of the theme result, and a bunch of other graphical elements (that are irrelevant for my integration purposes).It's becoming very hard to combine the
stderr
withstdout
to get the actual error items per main error (which normally represents a file).The text was updated successfully, but these errors were encountered: