Sha256: 23364f4e05a814bdc4eef265e15e82c30e7d7aabd266bba70828f174a5b08b76

Contents?: true

Size: 887 Bytes

Versions: 4

Compression:

Stored size: 887 Bytes

Contents

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

module Slack
  module Cli
    class App
      desc 'Migration methods.'
      command 'migration' do |g|
        g.desc 'For Enterprise Grid workspaces, map local user IDs to global user IDs'
        g.long_desc %( For Enterprise Grid workspaces, map local user IDs to global user IDs )
        g.command 'exchange' do |c|
          c.flag 'users', desc: 'A comma-separated list of user ids, up to 400 per request.'
          c.flag 'team_id', desc: 'Specify team_id starts with T in case of Org Token.'
          c.flag 'to_old', desc: 'Specify true to convert W global user IDs to workspace-specific U IDs. Defaults to false.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.migration_exchange(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/migration.rb
slack-ruby-client-2.3.0 bin/commands/migration.rb
slack-ruby-client-2.2.0 bin/commands/migration.rb
slack-ruby-client-2.1.0 bin/commands/migration.rb