Skip to content

Conversation

elia
Copy link
Member

@elia elia commented May 27, 2025

This pull request refactors the ShopifyToolkit::CommandLine class by moving its implementation from the exe/shopify-toolkit file into a new dedicated file, lib/shopify_toolkit/command_line.rb. This change improves the organization and maintainability of the codebase. Additionally, a new method exit_on_failure? has been introduced to ensure proper exit behavior for the CLI.

Code organization and refactoring:

  • The implementation of ShopifyToolkit::CommandLine has been moved from exe/shopify-toolkit to a new file, lib/shopify_toolkit/command_line.rb, aligning with standard Ruby project structure. [1] [2]

New functionality:

  • Added the exit_on_failure? method to the ShopifyToolkit::CommandLine class, ensuring the CLI exits with a non-zero status code on failure.

@elia elia self-assigned this May 27, 2025
@elia elia merged commit 48273e6 into main May 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant