-
Notifications
You must be signed in to change notification settings - Fork 201
Conversation
3e60db5
to
6a6c899
Compare
That's a bug (good catch). Even if the help doesn't work, you should be able to do |
@hannachen |
I don't know if it is the same issue as you are having @hannachen - but I cannot get any of the app commands to run? |
My bad! Would you mind trying again? |
That worked. 🎩 ing now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎩 = ✅
Is there an error message/help for incomplete commands? The CLI seem to be breaking for me when I only enter Traceback (most recent call last): 23: from ./bin/shopify:47:in `' 22: from ./bin/shopify:36:in `block in ' 21: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call' 20: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort' 19: from ./bin/shopify:37:in `block (2 levels) in ' 18: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/core/entry_point.rb:23:in `call' 17: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/core/monorail.rb:30:in `log' 16: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/core/entry_point.rb:24:in `block in call' 15: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/core/executor.rb:15:in `call' 14: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps' 13: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap' 12: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps' 11: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap' 10: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps' 9: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/core/executor.rb:16:in `block in call' 8: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging' 7: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-ui/lib/cli/ui.rb:176:in `log_output_to' 6: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging' 5: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id' 4: from /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging' 3: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call' 2: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/command.rb:24:in `call' 1: from /Users/hanna/src/github.com/Shopify/shopify-cli/lib/shopify_cli/command.rb:30:in `call' /Users/hanna/src/github.com/Shopify/shopify-cli/vendor/deps/cli-kit/lib/cli/kit/base_command.rb:41:in `call': NotImplementedError (NotImplementedError) |
It shouldn't. I pushed a fix for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎩 👍
Tested the commands locally, using shopify app create
for all three project types with shopify app serve
. It's great to not have to specify the project type when serving an app!
Fixes https://github.com/Shopify/shopify-cli-planning/issues/59
WHY are these changes introduced?
I'm iterating on the taxonomy of the app commands to group them under
shopify app
and remove the need for passing thetype
, which is information that can be obtained from the project's directory.WHAT is this pull request doing?
This PR moves the sub-commands under the
shopify app
command. As part of this effort, I've removed messages and business logic duplication across the commands (there were many copy-pasting patterns)‚ and extracted business logics intoservices
that allow easily reusing the business logic across commands.Note moving all the commands in one shot resulted in many changes and thus a large PR that might make the review a bit hard. Because I didn't touch the business logic, and there were already some tests in place that bring some confidence, I refrained from doing a breakdown. If you think that'll help you with the review, let me know and I can figure out the process for gradual migration.
How to test your changes?
I recommend creating an app of each type and using each of the commands with the app. All of them should work as expected. Pay close attention to the output messages too to make sure the merging of messages from all the project types was done right.
Post-release steps
The counterpart PR for updating the dev.shopify.com documentation should get deployed too.
Update checklist