module GitHub::Markup
def execute(command, target)
def execute(command, target) return target if !system("which #{command} > /dev/null") out = '' Open3.popen3(command) do |stdin, stdout, _| stdin.puts target stdin.close out = stdout.read end out.gsub("\r", '') end