Class: Slk::Commands::Catchup
- Includes:
- Support::InteractivePrompt, Support::UserResolver
- Defined in:
- lib/slk/commands/catchup.rb
Overview
Interactive review and dismissal of unread messages rubocop:disable Metrics/ClassLength
Instance Attribute Summary
Attributes inherited from Base
#options, #positional_args, #runner
Instance Method Summary collapse
Methods included from Support::InteractivePrompt
prompt_for_action, read_single_char
Methods included from Support::UserResolver
#extract_user_from_message, #resolve_conversation_label, #resolve_dm_user_name
Methods inherited from Base
Constructor Details
This class inherits a constructor from Slk::Commands::Base
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/slk/commands/catchup.rb', line 14 def execute result = return result if result if @options[:batch] batch_catchup else interactive_catchup end rescue ApiError => e error("Failed: #{e.}") 1 end |