Class: Slk::Commands::Activity

Inherits:
Base
  • Object
show all
Defined in:
lib/slk/commands/activity.rb

Overview

Displays recent activity feed items (reactions, mentions, threads) rubocop:disable Metrics/ClassLength

Instance Attribute Summary

Attributes inherited from Base

#options, #positional_args, #runner

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#executeObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/slk/commands/activity.rb', line 10

def execute
  result = validate_options
  return result if result

  workspace = target_workspaces.first
  fetch_and_display_activity(workspace)
rescue ApiError => e
  error("Failed to fetch activity: #{e.message}")
  1
end