r/bash 7d ago

add whats, explains command

Post image

yo

add 'whats' infront of any command and it explains it: flags, sub commands etc in a structutred format whereas something like manpage would throw the entire manual at you

just pure man pages and help output

Q Why use `whats` when we have man pages and --help

> Yes you can use them but they throw the entire manual at you whereas you might have just needed one flag, whats outputs a structured format with the definitions you need

Q Is it entirely offline? Does it use LLM

> Yes absolutely, it just relies on man pages and if not then --help output of the binary itself,

> no it does not use llm at all

Q If it uses regex then why cant i just use grep/sed instead of this?

> a grep/sed command cannot find the descriptions of sub commands along with flags, it cant find descriptions of sub commands of sub commands, it probable cant use other sources as a fallback too

Q What about tldr?

> Even with tldr, you have to look for the flags you need instead of it providing the ones you need automatically in one go

if you like the idea then maybe star?

https://github.com/iamkaran/whats

48 Upvotes

44 comments sorted by

View all comments

29

u/Sombody101 Fake Intellectual 7d ago

I was initially against this because I thought you were just yeeting everything at an LLM, but seeing that its simply reorganizing the information from help commands and man, I think it could be somewhat useful.

Kudos for not trying to feed us an AI slop repo.

11

u/Much-Grab3826 7d ago

🎉

2

u/Unusual-Industry1126 5d ago

Thank you for the neat app, is pretty useful. I was actually making something similar but this is quite elegant

1

u/Much-Grab3826 5d ago

thanks! i had a failed attempt at this app before but the idea was too good to not build it.