Module: Mihari::Commands::Version
- Included in:
- Mihari::CLI::App
- Defined in:
- lib/mihari/commands/version.rb
Overview
Version sub-commands
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mihari/commands/version.rb', line 10 def included(thor) thor.class_eval do map %w[--version -v] => :__print_version desc "--version, -v", "Print the version" def __print_version puts Mihari::VERSION end end end |