Sha256: b26776799ba682da169d3f7091c6da12e887f8e04702c8f2099b0cf74f8212f2

Contents?: true

Size: 794 Bytes

Versions: 4

Compression:

Stored size: 794 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Cli
    class App
      desc 'Rtm methods.'
      command 'rtm' do |g|
        g.desc 'Starts a Real Time Messaging session.'
        g.long_desc %( Starts a Real Time Messaging session. )
        g.command 'connect' do |c|
          c.flag 'batch_presence_aware', desc: 'Batch presence deliveries via subscription. Enabling changes the shape of presence_change events. See batch presence.'
          c.flag 'presence_sub', desc: 'Only deliver presence events when requested by subscription. See presence subscriptions.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.rtm_connect(options))
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 bin/commands/rtm.rb
slack-ruby-client-2.3.0 bin/commands/rtm.rb
slack-ruby-client-2.2.0 bin/commands/rtm.rb
slack-ruby-client-2.1.0 bin/commands/rtm.rb