Skip to content

feat: do not show icons when piped or in a tty. enable optional flags (icons. color) - #534

Merged
cafkafk merged 7 commits into
mainfrom
p_icons
Oct 19, 2023
Merged

feat: do not show icons when piped or in a tty. enable optional flags (icons. color)#534
cafkafk merged 7 commits into
mainfrom
p_icons

Conversation

@PThorpe92

Copy link
Copy Markdown
Member

This is a rework of PR #54 which needed considerable work. In the manpage, eza stated that auto was the default color option, but I noticed that no flags actually used the TakesValue::Optional option.

This allows --icons- and --color` to be passed without an argument, and stops icons from being rendered when piped or in a tty.

@PThorpe92
PThorpe92 requested a review from cafkafk as a code owner October 16, 2023 13:53
@PThorpe92
PThorpe92 force-pushed the p_icons branch 2 times, most recently from c05c210 to 1609396 Compare October 16, 2023 17:43

@MartinFillon MartinFillon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cafkafk cafkafk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good (nice that you regenerated nix tests!), only thing is we need a convetional commits breaking change notice, because this removes --no-icons.

@PThorpe92
PThorpe92 requested a review from cafkafk October 18, 2023 22:51

@cafkafk cafkafk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think everything is in order. Merging!

@cafkafk
cafkafk merged commit 562ad25 into main Oct 19, 2023
@PThorpe92
PThorpe92 deleted the p_icons branch October 19, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

feat: Use is-terminal crate to mimic exact ls output even with flags when being piped.

3 participants