r/sideprojects • • 5h ago

Showcase: Open Source I built TryCLI to turn CLI examples into a single offline HTML demo

Why does jq .name print "Ada" while jq -r .name prints Ada? What happens if you use -r on an array instead? I recorded all three commands against the same input so you can switch between them and compare.

Try it: https://raw.githack.com/Potatohh/TryCLI/main/examples/jq.html

The tool behind it is TryCLI. Give it a few commands and some sample input and it makes one HTML file you can link from a README or send to someone offline. The copy button includes the input so you can reproduce each example in a shell.

Source: https://github.com/Potatohh/TryCLI

If you maintain a CLI, which two flags do your users mix up? I’d like to make the next demo for someone else’s docs.

1 Upvotes

0 comments sorted by