Interactive CLI Applications
So far, the interaction with our CLI application (Bookmarkr) has mostly been text-based, meaning that the application responds to a text input with a text output. In a sense, it was mostly a request-response kind of application.
Yes, we’ve also added some colors to the text output so that the user can easily and instantly know whether the request was processed successfully or it ended with errors or warnings.
However, even though CLI applications don’t provide a graphical user interface (GUI), that doesn’t mean they can’t be fun to use! 😉
In this chapter, we’ll learn how to enhance the output of our CLI application to make it more user-friendly. We’ll learn how to add the following elements:
- Progress bars and checkmarks to let the user know of the progress of their request. This is especially useful for time-consuming, long-running operations (such as downloading or encoding a file). ...