Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add sonia --version command

  • Loading branch information...
commit c4c148679e2e9adc4ae8a68b4351d87f4fc7f3e0 1 parent 0acdd78
@pusewicz authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/sonia/cli.rb
View
7 lib/sonia/cli.rb
@@ -23,5 +23,12 @@ def console
require 'sonia'
IRB.start(__FILE__)
end
+
+ desc "version", "Prints Sonia's version information"
+ def version
+ require 'sonia/version'
+ puts "Sonia v#{Sonia::VERSION}"
+ end
+ map %w(-v --version) => :version
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.