Sha256: efab8559ed6d1e8cf85dc3df9051614e79a88743ed98759517f2c979b974ab7e

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

module ShopifyCLI
  class Command
    class ProjectCommand < Command
      def call(*)
        @ctx.puts(self.class.help)
      end

      def self.help
        project_type = name.split("::")[0].downcase
        ShopifyCLI::Context.message(
          "#{project_type}.help",
          ShopifyCLI::TOOL_NAME,
          subcommand_registry.command_names.join(" | ")
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shopify-cli-2.7.1 lib/shopify_cli/command/project_command.rb
shopify-cli-2.7.0 lib/shopify_cli/command/project_command.rb