Class: Ukiryu::CliCommands::VersionCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/ukiryu/cli_commands/version_command.rb

Overview

Show Ukiryu version

Instance Attribute Summary

Attributes inherited from BaseCommand

#config, #options

Instance Method Summary collapse

Methods inherited from BaseCommand

#apply_cli_options_to_config, #default_register_path, #initialize, #setup_register, #stringify_keys

Constructor Details

This class inherits a constructor from Ukiryu::CliCommands::BaseCommand

Instance Method Details

#runObject

Execute the version command



8
9
10
11
# File 'lib/ukiryu/cli_commands/version_command.rb', line 8

def run
  # VERSION is defined in ukiryu/version.rb and autoloaded via main module
  say "Ukiryu version #{Ukiryu::VERSION}", :cyan
end