slack-ruby/slack-ruby-client

View on GitHub
bin/commands/apps_connections.rb

Summary

Maintainability
A
25 mins
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Cli
    class App
      desc 'AppsConnections methods.'
      command 'apps_connections' do |g|
        g.desc 'Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over.'
        g.long_desc %( Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. )
        g.command 'open' do |c|
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.apps_connections_open(options))
          end
        end
      end
    end
  end
end