lib/remocon/cli.rb in remocon-0.4.0.pre.1 vs lib/remocon/cli.rb in remocon-0.4.0
- old
+ new
@@ -50,9 +50,14 @@
option :token, type: :string, desc: "access token to your project"
def validate
execute(Remocon::Command::Validate)
end
+ desc "version", "Show remocon version"
+ def version
+ puts Remocon::VERSION
+ end
+
private
def execute(klass)
exit(1) unless klass.new(options).run
end