Sha256: 65581657efcf9be53028cf717c1d4be8d73a38039fad5ebaea4b652be025b5e7

Contents?: true

Size: 751 Bytes

Versions: 5

Compression:

Stored size: 751 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.0.0 bin/commands/migration.rb
slack-ruby-client-1.1.0 bin/commands/migration.rb
slack-ruby-client-1.0.0 bin/commands/migration.rb
slack-ruby-client-0.17.0 bin/commands/migration.rb
slack-ruby-client-0.16.0 bin/commands/migration.rb