exe/fusuma-sendkey in fusuma-plugin-sendkey-0.2.1 vs exe/fusuma-sendkey in fusuma-plugin-sendkey-0.3.0

- old
+ new

@@ -18,11 +18,11 @@ end opt.parse!(ARGV) if option[:list] - puts Fusuma::Plugin::Sendkey::Keyboard.new.available_codes + puts Fusuma::Plugin::Sendkey::Keyboard.new.search_codes return end if option[:version] puts Fusuma::Plugin::Sendkey::VERSION @@ -35,8 +35,7 @@ warn 'fusuma-sendkey require 1 arugument' warn 'e.g. fusuma-sendkey LEFTALT+LEFT' exit 1 end -Fusuma::Plugin::Sendkey::Keyboard.new.type_command(param: param).tap do |command| - exec(command) -end +keyboard = Fusuma::Plugin::Sendkey::Keyboard.new +keyboard.valid?(param: param) && keyboard.type(param: param)