Class: Shoes::UI::CLI::VersionCommand

Inherits:
BaseCommand show all
Defined in:
shoes-core/lib/shoes/ui/cli/version_command.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#args

Instance Method Summary collapse

Methods inherited from BaseCommand

#help_from_options, #initialize, #parse!, #warn_on_unexpected_parameters

Constructor Details

This class inherits a constructor from Shoes::UI::CLI::BaseCommand

Instance Method Details

#helpObject



11
12
13
14
15
16
# File 'shoes-core/lib/shoes/ui/cli/version_command.rb', line 11

def help
  <<~EOS
    shoes version
        Prints the current Shoes version
EOS
end

#runObject



7
8
9
# File 'shoes-core/lib/shoes/ui/cli/version_command.rb', line 7

def run
  puts "Shoes #{Shoes::Core::VERSION}"
end