Sha256: 1e1529b87c7dd15defa32141fa19c61bf4da84775f634f4206aa4d633c5e3006

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

# frozen_string_literal: true

require "thor"

module Ductr
  module CLI
    #
    # The default CLI is started when no project folder was found.
    # It expose project and adapter generation tasks.
    #
    class Default < Thor
      desc "new", "Generates a new project"
      #
      # Generates a new project
      #
      # @param name [String] The project's name
      #
      # @return [void]
      #
      def new(name = nil)
        NewProjectGenerator.start([name])
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ductr-0.2.3 lib/ductr/cli/default.rb
ductr-0.2.2 lib/ductr/cli/default.rb
ductr-0.2.1 lib/ductr/cli/default.rb
ductr-0.2.0 lib/ductr/cli/default.rb
ductr-0.1.2 lib/ductr/cli/default.rb
ductr-0.1.1 lib/ductr/cli/default.rb
ductr-0.1.0 lib/ductr/cli/default.rb