Sha256: 0a4fae227eedf9f5ea15d6cb2585937f41c06fd31d698b30f2a1ad1f2671ea65

Contents?: true

Size: 1.22 KB

Versions: 13

Compression:

Stored size: 1.22 KB

Contents

module ShopifyCLI
  module Commands
    class App
      class Create
        class PHP < ShopifyCLI::Command::AppSubCommand
          prerequisite_task :ensure_authenticated

          options do |parser, flags|
            parser.on("--name=NAME") { |name| flags[:name] = name }
            parser.on("--organization-id=ID") { |organization_id| flags[:organization_id] = organization_id }
            parser.on("--store-domain=MYSHOPIFYDOMAIN") { |url| flags[:store_domain] = url }
            parser.on("--type=APPTYPE") { |type| flags[:type] = type }
            parser.on("--verbose") { flags[:verbose] = true }
          end

          def call(*)
            Services::App::Create::PHPService.call(
              name: options.flags[:name],
              organization_id: options.flags[:organization_id],
              store_domain: options.flags[:store_domain],
              type: options.flags[:type],
              verbose: !options.flags[:verbose].nil?,
              context: @ctx
            )
          end

          class << self
            def help
              ShopifyCLI::Context.message("core.app.create.php.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shopify-cli-2.11.2 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.11.1 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.11.0 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.10.2 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.10.1 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.10.0 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.9.0 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.8.0 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.7.4 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.7.3 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.7.2 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.7.1 lib/shopify_cli/commands/app/create/php.rb
shopify-cli-2.7.0 lib/shopify_cli/commands/app/create/php.rb