Class: Slk::Commands::Who
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
Constructor Details
This class inherits a constructor from Slk::Commands::Base
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/slk/commands/who.rb', line 13 def execute result = return result if result run rescue ApiError => e error("API error: #{e.}") 1 end |