Class: Bixby::App::Command

Inherits:
Object show all
Defined in:
lib/bixby-client/app/command.rb

Direct Known Subclasses

Bixby::App::Commands::Run

Class Method Summary collapse

Class Method Details

.command_name(str = nil) ⇒ Object



6
7
8
9
# File 'lib/bixby-client/app/command.rb', line 6

def self.command_name(str=nil)
  @command_name = str if !str.nil?
  @command_name ||= self.name.split(/::/).last.downcase
end

.desc(str = nil) ⇒ Object



11
12
13
14
# File 'lib/bixby-client/app/command.rb', line 11

def self.desc(str=nil)
  @desc = str if !str.nil?
  @desc
end

.match(str) ⇒ Object



16
17
18
# File 'lib/bixby-client/app/command.rb', line 16

def self.match(str)
  command_name == str
end

.optionsObject



20
21
# File 'lib/bixby-client/app/command.rb', line 20

def self.options
end