Class: Slk::Commands::Who

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

Overview

Display a Slack user profile (teems-style compact card by default). Examples:

slk who                  # self
slk who @alex
slk who alice
slk who Uxxx --full
slk who --json

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



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

def execute
  result = validate_options
  return result if result

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