Learn how to transform your command line interface into a beautiful textual user interface
Trogon, a Python solution at your rescue
If you follow my articles, you should know that I love writing and using command-line interfaces (CLI). I usually use Click to develop my CLIs. Sometimes, when you learn how to use a new CLI, it may be a bit difficult to discover all the options available for a given command. It could be nice to have a nice visualization of what a command is capable of, and I’m not talking about the man page for those used to Linux/Unix systems. These pages are generally difficult to navigate. I’m talking about a nice textual user interface giving you hints on how to use a command. And this is what we will see in this blog post with Trogon.
It will also be an occasion to:
- Discover or remember an advanced concept of Click called context.
- Learn a shiny and relatively new serialization library.