Sha256: 3ccd72f019d92572f4878e5415585e14275625bcacc3926ed7e333eacc167f42

Contents?: true

Size: 569 Bytes

Versions: 2

Compression:

Stored size: 569 Bytes

Contents

require "thor"

module Dry
  module Web
    module WebPipe
      class CLI
        class Generate < Thor
          desc "generate sub_app APP", "Generate a sub-app within a dry-web umbrella app"
          option :umbrella, required: true, banner: "UMBRELLA_NAME", desc: "Provide the name of the umbrella app, e.g. my_project"
          def sub_app(app_name)
            require "dry/web/web_pipe/generators/sub_app"
            Dry::Web::WebPipe::Generators::SubApp.new(app_name, umbrella: options[:umbrella]).call
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/cli/generate.rb
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/cli/generate.rb