Class: Tomo::Commands::Version

Inherits:
Tomo::CLI::Command show all
Includes:
Tomo::CLI::CommonOptions
Defined in:
lib/tomo/commands/version.rb

Instance Method Summary collapse

Methods included from Tomo::CLI::CommonOptions

included

Methods inherited from Tomo::CLI::Command

after_parse, arg, option, parse, parser

Methods included from Tomo::Colors

enabled?

Instance Method Details



12
13
14
15
16
17
18
# File 'lib/tomo/commands/version.rb', line 12

def banner
  <<~BANNER
    Usage: #{green('tomo version')}

    Display tomo’s version information.
  BANNER
end

#call(_options) ⇒ Object



20
21
22
# File 'lib/tomo/commands/version.rb', line 20

def call(_options)
  puts "tomo/#{Tomo::VERSION} #{RUBY_DESCRIPTION}"
end

#summaryObject



8
9
10
# File 'lib/tomo/commands/version.rb', line 8

def summary
  "Display tomo’s version"
end