HN user

dnsfr

120 karma
Posts7
Comments15
View on HN

https://github.com/denisidoro/navi allows you to browse through cheatsheets (that you may write yourself or download from maintainers) and execute commands. Suggested values for arguments are dynamically displayed in a list.

The latest release (v2.10.0) introduces the ability to read cheatsheets from tldr and cheat.sh.

navi is originally best suited for custom, powerful cheatsheets tailored to your needs. This feature complements its usage by allowing you to check snippets for commands you don't use regularly.

xpt is an abstraction over whatever package managers you have installed in your system. No need to run different commands based on the distro you're running anymore!

xpt can install software based on custom recipes. This allows you to add a custom behavior to a install script or to add a fallback in case no compatible package manager was found.

Cool! Will do it!

My only concern is that this way it would be impossible to add subcommands to navi

Let's say that in the future I want to add a command for removing a cheat (navi remove)

The way you described, it would look for snippets which contain "remove"

Any ideas?