Skip to content

Allow disabling color codes in the output #1490

Open
@tastyminerals

Description

@tastyminerals

Summary 💡

It would be nice to have an option to disable shell color codes and make the output of onefetch easier to parse.
For example

[31;1mCommits�[0m�[39;1m:�[0m �[39m411�[0m
[31;1mChurn (17)�[0m�[39;1m:�[0m �[39m.travis.yml 6�[0m
[39m            …/workflows/build-test.yml 4�[0m

is problematic once you want to collect some stats across many repos.

Similar neofetch issue: dylanaraps/neofetch#753

Motivation 🔦

I want to collect repo summaries across many projects.

ls -d * | xargs -I {} onefetch "{}" --no-bots --no-merges --number-of-authors 10 --number-of-file-churns 3 --no-art --no-color-palette --no-bold > summary.txt

produces a file which is difficult to parse without stripping the shell color codes first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions