slack-ruby/slack-ruby-client

View on GitHub
bin/commands/team_profile.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 'TeamProfile methods.'
      command 'team_profile' do |g|
        g.desc "Retrieve a team's profile."
        g.long_desc %( Retrieve a team's profile. )
        g.command 'get' do |c|
          c.flag 'visibility', desc: 'Filter by visibility.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.team_profile_get(options))
          end
        end
      end
    end
  end
end