lib/ukey/cli.rb in ukey-0.1.3 vs lib/ukey/cli.rb in ukey-0.1.4

- old
+ new

@@ -39,9 +39,14 @@ def select_interval(interval = nil) interval = HighLine.ask('Enter interval (sec):', Integer) unless interval interval_selected(interval) end + desc 'version', 'shows the version number' + def version + say Ukey::VERSION + end + private def device_selected(device) Config.device = device say(green("#{device} selected. Config written."))