Sha256: 9a02ceee22d85f35b59422519d2c30753ab69c9b5e31ef932ee70828bf0c9650

Contents?: true

Size: 1.9 KB

Versions: 9

Compression:

Stored size: 1.9 KB

Contents

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

desc 'Reminders methods.'
command 'reminders' do |g|
  g.desc 'Creates a reminder.'
  g.long_desc %( Creates a reminder. )
  g.command 'add' do |c|
    c.flag 'text', desc: 'The content of the reminder.'
    c.flag 'time', desc: 'When this reminder should happen: the Unix timestamp (up to five years from now), the number of seconds until the reminder (if within 24 hours), or a natural language description (Ex. "in 15 minutes," or "every Thursday").'
    c.flag 'user', desc: 'The user who will receive the reminder. If no user is specified, the reminder will go to user who created it.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.reminders_add(options))
    end
  end

  g.desc 'Marks a reminder as complete.'
  g.long_desc %( Marks a reminder as complete. )
  g.command 'complete' do |c|
    c.flag 'reminder', desc: 'The ID of the reminder to be marked as complete.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.reminders_complete(options))
    end
  end

  g.desc 'Deletes a reminder.'
  g.long_desc %( Deletes a reminder. )
  g.command 'delete' do |c|
    c.flag 'reminder', desc: 'The ID of the reminder.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.reminders_delete(options))
    end
  end

  g.desc 'Gets information about a reminder.'
  g.long_desc %( Gets information about a reminder. )
  g.command 'info' do |c|
    c.flag 'reminder', desc: 'The ID of the reminder.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.reminders_info(options))
    end
  end

  g.desc 'Lists all reminders created by or for a given user.'
  g.long_desc %( Lists all reminders created by or for a given user. )
  g.command 'list' do |c|
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.reminders_list(options))
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.1 bin/commands/reminders.rb
slack-ruby-client-0.14.0 bin/commands/reminders.rb
slack-ruby-client-0.13.1 bin/commands/reminders.rb
slack-ruby-client-0.13.0 bin/commands/reminders.rb
slack-ruby-client-0.12.0 bin/commands/reminders.rb
slack-ruby-client-0.11.1 bin/commands/reminders.rb
slack-ruby-client-0.11.0 bin/commands/reminders.rb
slack-ruby-client-0.10.0 bin/commands/reminders.rb
slack-ruby-client-0.9.1 bin/commands/reminders.rb