dblock/slack-ruby-client

View on GitHub
bin/commands/tooling_tokens.rb

Summary

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

module Slack
  module Cli
    class App
      desc 'ToolingTokens methods.'
      command 'tooling_tokens' do |g|
        g.desc 'Exchanges a refresh token for a new app configuration token.'
        g.long_desc %( Exchanges a refresh token for a new app configuration token. )
        g.command 'rotate' do |c|
          c.flag 'refresh_token', desc: 'The xoxe refresh token that was issued along with the old app configuration token.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.tooling_tokens_rotate(options))
          end
        end
      end
    end
  end
end