Sha256: 5a021c823b9593f397587584ab7aa89f1b4605ec4cca154e8e79b51ece408146
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'thor' module Slackpolice class CLI < Thor desc :archive, "archive no members channels" method_option :api_token, type: :string, required: true def archive archived_channels = client.archive archived_channels.each do |c| puts "archived: ##{c['name']}" end end private def client @client ||= Slackpolice::Client.new options end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slackpolice-0.1.0 | lib/slackpolice/cli.rb |