ANSI 颜色 AWS CodeBuild 终端输出

ANSI Colours AWS CodeBuild Terminal Output

有人知道如何在 AWS CodeBuild 构建日志中启用 ANSI 颜色吗?我四处搜索了这个,我得到的只是一个关于 AWS CodeBuild 如何支持颜色的 reddit post。

示例输出:

·[0m·[1mInitializing the backend...·[0m
·[0m·[32m
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.·[0m
·[0m·[1mInitializing provider plugins...·[0m
- Checking for available provider plugins on 

我原以为会看到一些绿色粗体文本,而不是转义码。

我以为你想知道我写了一个插件,可以将颜色添加回代码构建日志:) https://github.com/joshuajwilborn/colorize-the-logs希望你喜欢!