Sha256: 449a4b9f86fc3c651fb34925c98f7af3667c68d8774f624a3c58b37ee472702f

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

# frozen_string_literal: true
# typed: true

module Cmd
  module Add
    class Repl < Dry::CLI::Command
      extend T::Sig

      desc 'Allow adding configuration for REPL support on the current application, being either pry or irb'

      option :irb, type: :boolean, default: true,
                   desc: '(This is the default): Enable the code generator to assume IRB as the REPL of choice'
      option :pry, type: :boolean, default: false,
                   desc: 'Enable the code generator to assume Pry as the REPL of choice'

      def call(irb:, pry:)
        install_deps if pry

        puts 'Hello world'
      end

      private

      sig { void }
      def install_deps
        puts 'installing deps'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spell_craft-0.1.1 lib/cmd/add/repl.rb
spell_craft-0.1.0 lib/cmd/add/repl.rb