slack-ruby/slack-ruby-client

View on GitHub
bin/commands/calls_participants.rb

Summary

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

module Slack
  module Cli
    class App
      desc 'CallsParticipants methods.'
      command 'calls_participants' do |g|
        g.desc 'Registers new participants added to a Call.'
        g.long_desc %( Registers new participants added to a Call. )
        g.command 'add' do |c|
          c.flag 'id', desc: 'id returned by the calls.add method.'
          c.flag 'users', desc: 'The list of users to add as participants in the Call. Read more on how to specify users here.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.calls_participants_add(options))
          end
        end

        g.desc 'Registers participants removed from a Call.'
        g.long_desc %( Registers participants removed from a Call. )
        g.command 'remove' do |c|
          c.flag 'id', desc: 'id returned by the calls.add method.'
          c.flag 'users', desc: 'The list of users to remove as participants in the Call. Read more on how to specify users here.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.calls_participants_remove(options))
          end
        end
      end
    end
  end
end