Method: TTY::Pager::SystemPager.run_command
- Defined in:
- lib/tty/pager/system.rb
.run_command(*args) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Run pager command silently with no input and capture output
46 47 48 49 50 51 |
# File 'lib/tty/pager/system.rb', line 46 def self.run_command(*args) _, err, status = Open3.capture3(*args) err.empty? && status.success? rescue Errno::ENOENT false end |