Class: ListTool::App::VersionCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/list_tool/app/commands/version_command.rb

Class Method Summary collapse

Class Method Details

.execute(options, lister) ⇒ Object



14
15
16
# File 'lib/list_tool/app/commands/version_command.rb', line 14

def self.execute options, lister
  Printer.print_version
end

.helpObject



18
19
20
# File 'lib/list_tool/app/commands/version_command.rb', line 18

def self.help
  " -v,  --version\t\t\tPrint version"
end

.match?(arg) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/list_tool/app/commands/version_command.rb', line 6

def self.match? arg
  ['v', '-v', 'version', '--version'].include? arg
end

.parse(argv) ⇒ Object



10
11
12
# File 'lib/list_tool/app/commands/version_command.rb', line 10

def self.parse argv
  {}
end