Skip to content

Coloring output discards command color information #39

@didactic-drunk

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.

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