dblock/slack-ruby-client

View on GitHub
bin/commands/emoji.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 'Emoji methods.'
      command 'emoji' do |g|
        g.desc 'Lists custom emoji for a team.'
        g.long_desc %( Lists custom emoji for a team. )
        g.command 'list' do |c|
          c.flag 'include_categories', desc: 'Include a list of categories for Unicode emoji and the emoji in each category.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.emoji_list(options))
          end
        end
      end
    end
  end
end