lib/fusuma/plugin/inputs/libinput_command_input.rb in fusuma-1.3.3 vs lib/fusuma/plugin/inputs/libinput_command_input.rb in fusuma-1.4.0

- old
+ new

@@ -36,19 +36,19 @@ def version # versiom_command prints "1.6.3\n" @version ||= `#{version_command}`.strip end - # @yield [line] gives a line in libinput list-devices output to the block + # @yieldparam [String] gives a line in libinput list-devices output to the block def list_devices cmd = list_devices_command MultiLogger.debug(list_devices: cmd) Open3.popen3(cmd) do |_i, o, _e, _w| o.each { |line| yield(line) } end end - # @yield [line] gives a line in libinput debug-events output to the block + # @yieldparam [String] gives a line in libinput debug-events output to the block def debug_events prefix = 'stdbuf -oL --' options = [*libinput_options] cmd = "#{prefix} #{debug_events_command} #{options.join(' ')}".strip MultiLogger.debug(debug_events: cmd)