Skip to content

Coloring output discards command color information #39

Description

@didactic-drunk

To reproduce compare crystal spec, crystal build, etc running within and without guardian.

  • Without guardian errors are red, pending has it's own easily skipped color, etc.
  • Within guardian the entire command output is grey and to my impaired vision almost unreadable.

I suggest replacing

output = `#{command}`
output.lines.each do |line|
  puts "  #{line.gsub(/\n$/, "").colorize(:dark_gray)}"
end

With:

system command

system solves another problem with long running commands not showing output until exit with the current code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions