con / duct

A helper to run a command, capture stdout/stderr and details about running
MIT License
1 stars 1 forks source link

Remove color from output #65

Closed yarikoptic closed 1 week ago

yarikoptic commented 3 weeks ago

Running singularity directly -- results in colors for WARNING and FATAL

image

Running through DUCT produced

image

where no color for WARNING, and FATAL comes at the end in blue. Both messages are (without ANSI colors) in stderr

(dev3) yoh@typhon:/mnt/DATA/data/yoh/1076_spacetop$ cat .duct/logs/2024.06.09T12.47.28-2020941_stderr 
WARNING: skipping mount of /mnt/DATA/data/yoh/1076_spacetop/derivatives: stat /mnt/DATA/data/yoh/1076_spacetop/derivatives: no such file or directory
FATAL:   container creation failed: mount /mnt/DATA/data/yoh/1076_spacetop/derivatives->/mnt/DATA/data/yoh/1076_spacetop/derivatives error: while mounting /mnt/DATA/data/yoh/1076_spacetop/derivatives: mount source /mnt/DATA/data/yoh/1076_spacetop/derivatives doesn't exist
asmacdo commented 2 weeks ago

I like the colors, but its not worth adding complexity at the moment, IMO.