sharkdp / lscolors

A Rust library and tool to colorize paths using LS_COLORS
Apache License 2.0
265 stars 18 forks source link

Better CLI #82

Open REALERvolker1 opened 10 months ago

REALERvolker1 commented 10 months ago

Hey there. I made PR #80 a while ago, and one of my ideas was to make a better CLI for the lscolors binary.

In my dotfiles, I have an example of something that could be built to function relatively okay-ish. https://github.com/REALERvolker1/homescripts/blob/main/.config/rustcfg/ls-colors-cli/src/runtime.rs

I don't want you to just copy the code verbatim, as I wrote it sort of like I would write a bash script -- because that was why I was writing it.

Eh, just some ideas lol

sharkdp commented 10 months ago

Cool that we have a prototype already. Which options would you consider essential?

REALERvolker1 commented 10 months ago

to be honest, I only included the options I considered essential. There could definitely be more, if we had more ideas.

One of my other ideas that I've been kicking around was a sort of "LS_ICONS" standard that was literally just LS_COLORS but with strings of nerd font icons, but that's definitely outside of the scope of this. idk it is just something cool I thought of.

REALERvolker1 commented 10 months ago

Above all else though, I want to see a detailed --help command that describes what everything does, with examples.