Sha256: cc594663d4f3e2e2a8d133cc5dd717a431df234a7aedc939aec12c35e2725b6d

Contents?: true

Size: 724 Bytes

Versions: 11

Compression:

Stored size: 724 Bytes

Contents

require "shopify_cli"

module Rails
  module Commands
    class Populate < ShopifyCli::Command
      subcommand :Product, "products", Project.project_filepath("commands/populate/product")
      subcommand :Customer, "customers", Project.project_filepath("commands/populate/customer")
      subcommand :DraftOrder, "draftorders", Project.project_filepath("commands/populate/draft_order")

      def call(_args, _name)
        @ctx.puts(self.class.help)
      end

      def self.help
        ShopifyCli::Context.message("rails.populate.help", ShopifyCli::TOOL_NAME)
      end

      def self.extended_help
        ShopifyCli::Context.message("rails.populate.extended_help", ShopifyCli::TOOL_NAME)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shopify-cli-1.14.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.13.1 lib/project_types/rails/commands/populate.rb
shopify-cli-1.13.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.12.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.11.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.10.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.9.1 lib/project_types/rails/commands/populate.rb
shopify-cli-1.9.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.8.0 lib/project_types/rails/commands/populate.rb
shopify-cli-1.7.1 lib/project_types/rails/commands/populate.rb
shopify-cli-1.7.0 lib/project_types/rails/commands/populate.rb