mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #381] [MERGED] Better handling for color in terminal #449
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/381
Author: @Its-Just-Nans
Created: 3/23/2024
Status: ✅ Merged
Merged: 3/26/2024
Merged by: @bootandy
Base:
master← Head:color-handling📝 Commits (6)
6aef31dbetter handling for color in terminalede4680cleanupd4cbc85cleanup07e28cacargo fmtc1b3b1cclippy + tests07a43c6clean📊 Changes
11 files changed (+73 additions, -22 deletions)
View changed files
📝
README.md(+2 -1)📝
completions/_dust(+2 -0)📝
completions/_dust.ps1(+2 -0)📝
completions/dust.bash(+1 -1)📝
completions/dust.elv(+2 -0)📝
completions/dust.fish(+1 -0)📝
man-page/dust.1(+4 -1)📝
src/cli.rs(+7 -0)📝
src/config.rs(+4 -0)📝
src/main.rs(+32 -19)📝
tests/test_flags.rs(+16 -0)📄 Description
Hi
With this PR
will work out of the box
It checks if the output is a terminal (if not, it could be a pipe, so we disable the colors)
This PR also implements the https://no-color.org/ proposal
If you still want the colors you can use
Thanks !
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.