Module: VersionCommand
- Defined in:
- lib/plugins/commands/version_command.rb
Overview
Specifies the version command
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/plugins/commands/version_command.rb', line 5 def self.included(thor) thor.class_eval do long_desc "\nPrints the current version of Radial.\n\n LONGDESC\n\n descf \"version\", nil,\n \"Prints the current version of Radial. (Aliases: --version, -v)\"\n map \"-v\" => \"version\",\n \"--version\" => \"version\"\n def version\n inf(Conf.version)\n end\n end\nend\n" |