I’m looking for writing a GUI client for a existing application in my job, this application is CLI and because this is not widely used.
This is the first time I’m writing something similar, the I ask you for recommendations, books, techniques, methodologies, advices. My first approach is to create the interface and to make calls to the original CLI client, is this a congruent approach?
Though it’s not ideal, I don’t think it’s a bad approach, creating a GUI shell for your CLI app. In this design, the GUI acts as the CLI program’s user. You have to consider things like:
all possible CLI program output? How about errors? How
complex will that be? Consider
parsing Unix “ls” output. Simple enough. How
about Windows command prompt “dir” output? A
bit more funky.
execute, this must be presented in
the GUI. The GUI may have to prevent
the user from running another instance of the CLI.