Skip to content

Cargo Install Friend

crates.io
8 pointsDavidCanHelp6 comments
On HN

Comments

Seems overly complicated if the goal was a "simpler fortune" - a self-contained shell-script is perfectly capable of echoing random lines (I should know, I had one for generating email signatures).

On the other hand, if all one wants is a set of fortune cookies - there's no need for the new client - fortune-mod exists:

https://www.shlomifish.org/open-source/projects/fortune-mod/

That said, I appreciate a trivial rust program that does a simple job - as someone not quite having taken the time to learn rust yet?).

I would probably not bother with the built-in cookies - if anything - have an option to "seed" ~/.config/friend/fortunes.txt or whatever is the proper xdg path.

https://docs.rs/crate/friend/0.1.0/source/src/main.rs

why waste the cargo namespace on stuff like this. it's not even very thoughtful.

and the author is claude...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.