Settings

Theme

A better `ls` in Rust

bekk.christmas

5 points by selbekk 2 years ago · 4 comments

Reader

tmtvl 2 years ago

So if I understand it correctly:

- It's not actually better than ls:

> ignoring the permissions and author of the files (because who cares about those)

- Most of the heavy lifting is done by walkdir.

A better title may have been "The walkdir crate is awesome".

  • pytness 2 years ago

    Plus the clap crate. We could make all of this a crate and have the same ls in less than 10 lines

meepmorp 2 years ago

Better (as long as you ignore all the missing features) and only 100 lines (as long as you don't include the 3rd party libraries that do the heavy lifting).

tacone 2 years ago

I don't get the negativity, looks like a self ironic Rust tutorial to me, which may be quite useful to Rust beginners.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection