Class: Castaway::CLI::Version
- Inherits:
-
Object
- Object
- Castaway::CLI::Version
- Defined in:
- lib/castaway/cli/version.rb
Class Method Summary collapse
Class Method Details
.define(command) ⇒ Object
10 11 12 13 14 |
# File 'lib/castaway/cli/version.rb', line 10 def self.define(command) command.action do |_globals, , _args| puts "v#{Castaway::VERSION}" end end |
.description ⇒ Object
6 7 8 |
# File 'lib/castaway/cli/version.rb', line 6 def self.description "Report the current version (#{Castaway::VERSION})" end |