Sha256: 0aa6d4a959370c916387b73c536974559857f2e21bd3c5487b3011c0584685ac

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 KB

Contents

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

module Slack
  module Cli
    class App
      desc 'CanvasesAccess methods.'
      command 'canvases_access' do |g|
        g.desc 'Remove access to a canvas for specified entities'
        g.long_desc %( Remove access to a canvas for specified entities )
        g.command 'delete' do |c|
          c.flag 'canvas_id', desc: 'Encoded ID of the canvas.'
          c.flag 'channel_ids', desc: 'List of channels you wish to update access for.'
          c.flag 'user_ids', desc: 'List of users you wish to update access for.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.canvases_access_delete(options))
          end
        end

        g.desc 'Sets the access level to a canvas for specified entities'
        g.long_desc %( Sets the access level to a canvas for specified entities )
        g.command 'set' do |c|
          c.flag 'access_level', desc: 'Desired level of access (e.g. read, write).'
          c.flag 'canvas_id', desc: 'Encoded ID of the canvas.'
          c.flag 'channel_ids', desc: 'List of channels you wish to update access for.'
          c.flag 'user_ids', desc: 'List of users you wish to update access for.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.canvases_access_set(options))
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 bin/commands/canvases_access.rb