lib/hub/commands.rb
# Returns the terminal-formatted manpage, ready to be printed to
# the screen.
Returns the terminal-formatted manpage, ready to be printed to
the screen.
Returns the terminal - formatted manpage ready to be printed to the screen .
def hub_manpage
      return "** Can't find groff(1)" unless command?('groff')
      require 'open3'
      out = nil
      Open3.popen3(groff_command) do |stdin, stdout, _|
        stdin.puts hub_raw_manpage
        stdin.close
        out = stdout.read.strip
      end
      out
    end
def hub_manpage return "** Can't find groff(1)" unless command? ( 'groff' ) require 'open3' out = nil Open3 . popen3 ( groff_command ) do | stdin , stdout , _ | stdin . puts hub_raw_manpage stdin . close out = stdout . read . strip end out end
Returns the terminal-formatted manpage, ready to be printed to
the screen.
Returns the terminal - formatted manpage ready to be printed to the screen .