Sha256: 57c811b354d7683ef6959341a0b9184c7805c85eabad9c231edda8131cf6bd8b

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Rodbot
  class CLI
    module Commands
      class Simulator < Rodbot::CLI::Command
        desc 'Launch the chat simulator'
        option :sender, default: 'simulator', desc: "Sender to mimick"
        option :raw, type: :boolean, default: false, desc: "Whether to display raw Markdown"

        def rescued_call(sender:, raw:, **)
          Rodbot::Simulator.new(sender, raw: raw).run
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rodbot-0.5.1 lib/rodbot/cli/commands/simulator.rb
rodbot-0.5.0 lib/rodbot/cli/commands/simulator.rb