lib/fusuma/command_executor.rb in fusuma-0.10.1 vs lib/fusuma/command_executor.rb in fusuma-0.10.2

- old
+ new

@@ -22,10 +22,15 @@ def command Config.command(self) end def shortcut - Config.shortcut(self).tap { |s| return "xdotool key #{s}" if s } + s = Config.shortcut(self) + return unless s + c = "xdotool key #{s}" + MultiLogger.warn 'shortcut property is deprecated.' + MultiLogger.warn "Use command: #{c} instead of shortcut: #{s}" + c end def no_command 'echo "Command is not assigned"' end