3 ms·
Actually, the example has way better discoverability than most CLI software, especially if every option had tooltips illustrating what it's for in more detail.
by KronisLV 2y ago
Actually, the example has way better discoverability than most CLI software, especially if every option had tooltips illustrating what it's for in more detail.
For an actually good example of adjacent software, have a look at Keystore Explorer: https://keystore-explorer.org/ https://keystore-explorer.org/
I do manage my own CA for some development servers with it, way less of a headache than trying to remember a bunch of arbitrary commands (though obviously not well suited for any sort of automation, which I don't need in that specific use case).
For an example of a pleasant CLI with some good discoverability, I've always liked Docker's approach, where the commands are organized in a tree and entering a command without any arguments will print its usage in a useful format: https://docs.docker.com/reference/cli/docker/ https://docs.docker.com/reference/cli/docker/
$>docker
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Common Commands:
run Create and run a new container from an image
exec Execute a command in a running container
ps List containers
build Build an image from a Dockerfile
pull Download an image from a registry
push Upload an image to a registry
images List images
login Log in to a registry
logout Log out from a registry
search Search Docker Hub for images
version Show the Docker version information
info Display system-wide information
...