lib/dry/web/roda/cli/generate.rb in dry-web-roda-0.6.0 vs lib/dry/web/roda/cli/generate.rb in dry-web-roda-0.6.1

- old
+ new

@@ -3,14 +3,14 @@ module Dry module Web module Roda class CLI class Generate < Thor - desc "generate app APP", "Generate an app within a dry-web umbrella" + 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 app(app_name) - require "dry/web/roda/generators/app" - Dry::Web::Roda::Generators::App.new.(app_name, umbrella: options[:umbrella]) + def sub_app(app_name) + require "dry/web/roda/generators/sub_app" + Dry::Web::Roda::Generators::SubApp.new.(app_name, umbrella: options[:umbrella]) end end end end end