Class: Slk::Commands::Unread

Inherits:
Base
  • Object
show all
Includes:
Support::UserResolver
Defined in:
lib/slk/commands/unread.rb

Overview

Views and manages unread messages across workspaces rubocop:disable Metrics/ClassLength

Instance Attribute Summary

Attributes inherited from Base

#options, #positional_args, #runner

Instance Method Summary collapse

Methods included from Support::UserResolver

#extract_user_from_message, #resolve_conversation_label, #resolve_dm_user_name

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Slk::Commands::Base

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
20
# File 'lib/slk/commands/unread.rb', line 12

def execute
  result = validate_options
  return result if result

  dispatch_action
rescue ApiError => e
  error("Failed: #{e.message}")
  1
end