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.19.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.18.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.18.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.17.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.16.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.16.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.6 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.5 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.4 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.3 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.2 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.15.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.14.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.13.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.12.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.11.2 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.11.1 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.11.0 vendor/gen/lib/gen/commands/new.rb
shopify-cli-2.10.2 vendor/gen/lib/gen/commands/new.rb