class Makit::Humanize
def self.get_command_details(command)
def self.get_command_details(command) summary = "#{get_command_summary(command)}\n" summary += " Name: #{command.name}\n" summary += " Arguments: #{command.arguments.join(" ")}\n" summary += " Directory: #{command.directory}\n" summary += " Exit Code: #{command.exit_code}\n" if command.output.length > 0 summary += " Output:\n" summary += indent_string(command.output, 4) summary += "\n" end if command.error.length > 0 summary += " Error:\n" summary += indent_string(command.error, 4) summary += "\n" end summary end