Sha256: 12625d6328bab98ae3ce68e642df5b9126ecb2911b093b9ce32b848a2d53a327

Contents?: true

Size: 495 Bytes

Versions: 9

Compression:

Stored size: 495 Bytes

Contents

require "thor"

module Dry
  module Web
    module Roda
      class CLI < Thor
        desc "new APP", "Generate a new dry-web-roda project"
        def new(app_name)
          require "dry/web/roda/generators/umbrella"
          Generators::Umbrella.new.(app_name)
        end

        desc "generate GENERATOR", "Generate a new component for an existing dry-web-roda project"
        require "dry/web/roda/cli/generate"
        subcommand "generate", CLI::Generate
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dry-web-roda-0.6.0 lib/dry/web/roda/cli.rb
dry-web-roda-0.5.1 lib/dry/web/roda/cli.rb
dry-web-roda-0.5.0 lib/dry/web/roda/cli.rb
dry-web-roda-0.4.0 lib/dry/web/roda/cli.rb
dry-web-roda-0.3.0 lib/dry/web/roda/cli.rb
dry-web-roda-0.2.3 lib/dry/web/roda/cli.rb
dry-web-roda-0.2.2 lib/dry/web/roda/cli.rb
dry-web-roda-0.2.1 lib/dry/web/roda/cli.rb
dry-web-roda-0.2.0 lib/dry/web/roda/cli.rb