dblock/slack-ruby-client

View on GitHub
bin/commands/team_preferences.rb

Summary

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

module Slack
  module Cli
    class App
      desc 'TeamPreferences methods.'
      command 'team_preferences' do |g|
        g.desc "Retrieve a list of a workspace's team preferences."
        g.long_desc %( Retrieve a list of a workspace's team preferences. )
        g.command 'list' do |c|
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.team_preferences_list(options))
          end
        end
      end
    end
  end
end