dblock/slack-ruby-client

View on GitHub
bin/commands/apps.rb

Summary

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

module Slack
  module Cli
    class App
      desc 'Apps methods.'
      command 'apps' do |g|
        g.desc 'Uninstalls your app from a workspace.'
        g.long_desc %( Uninstalls your app from a workspace. )
        g.command 'uninstall' do |c|
          c.flag 'client_id', desc: 'Issued when you created your application.'
          c.flag 'client_secret', desc: 'Issued when you created your application.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.apps_uninstall(options))
          end
        end
      end
    end
  end
end