Sha256: 0ea3f45a72c62d22f0a20d47d5d3c7acc1bf24af08aab0204ef701f0049e84b6

Contents?: true

Size: 1.4 KB

Versions: 4

Compression:

Stored size: 1.4 KB

Contents

# This file was auto-generated by lib/tasks/web.rake

desc 'Stars methods.'
command 'stars' do |g|
  g.desc 'Adds a star to an item.'
  g.long_desc %( Adds a star to an item. )
  g.command 'add' do |c|
    c.flag 'channel', desc: 'Channel to add star to, or channel where the message to add star to was posted (used with timestamp).'
    c.flag 'file', desc: 'File to add star to.'
    c.flag 'file_comment', desc: 'File comment to add star to.'
    c.flag 'timestamp', desc: 'Timestamp of the message to add star to.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.stars_add(options))
    end
  end

  g.desc 'Lists stars for a user.'
  g.long_desc %( Lists stars for a user. )
  g.command 'list' do |c|
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.stars_list(options))
    end
  end

  g.desc 'Removes a star from an item.'
  g.long_desc %( Removes a star from an item. )
  g.command 'remove' do |c|
    c.flag 'channel', desc: 'Channel to remove star from, or channel where the message to remove star from was posted (used with timestamp).'
    c.flag 'file', desc: 'File to remove star from.'
    c.flag 'file_comment', desc: 'File comment to remove star from.'
    c.flag 'timestamp', desc: 'Timestamp of the message to remove star from.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.stars_remove(options))
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-0.11.1 bin/commands/stars.rb
slack-ruby-client-0.11.0 bin/commands/stars.rb
slack-ruby-client-0.10.0 bin/commands/stars.rb
slack-ruby-client-0.9.1 bin/commands/stars.rb