use colorful mode by default
This commit is contained in:
@@ -6,4 +6,6 @@ COPY . /opt/humans.txt
|
||||
|
||||
RUN npm i --production
|
||||
|
||||
ENV FORCE_COLOR=3
|
||||
|
||||
ENTRYPOINT ["bash", "/opt/humans.txt/run.sh"]
|
||||
|
||||
@@ -13,7 +13,7 @@ const formatters = {
|
||||
main()
|
||||
|
||||
function main() {
|
||||
const format = process.argv[2] || (process.stdout.isTTY ? "shell" : "txt")
|
||||
const format = process.argv[2] || ((process.env.GITHUB_ACTION || process.stdout.isTTY) ? "shell" : "txt")
|
||||
|
||||
const formatter = formatters[format]
|
||||
if (!formatter) {
|
||||
|
||||
Reference in New Issue
Block a user