Sha256: 59aa71f7e3b0927a7f9f34bdb16ec43a402d209d949a45840cbc70e5f33d85d5

Contents?: true

Size: 442 Bytes

Versions: 92

Compression:

Stored size: 442 Bytes

Contents

require 'gen'

module Gen
  module Commands
    class New < Gen::Command
      def call(args, _name)
        unless args.size == 1
          puts CLI::UI.fmt(self.class.help)
          raise(CLI::Kit::AbortSilent)
        end
        project = args.first

        Gen::Generator.run(project)
      end

      def self.help
        "Generate a new cli-kit project.\nUsage: {{command:#{Gen::TOOL_NAME} new <name>}}"
      end
    end
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
shopify-cli-2.36.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.35.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.34.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.33.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.33.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.32.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.32.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.31.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.30.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.29.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.28.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.27.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.26.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.25.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.24.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.23.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.22.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.21.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.20.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.20.0 vendor/gen/lib/gen/commands/new.rb