Upgrading shellCMS to use either gum or dialog
For some reason I've got caught lately on working on TUI's just for fun just to have this kind of interactivity that makes you learn how to use a tool when you are a total newcomer.
I did run a few experiments, and try to put some effort on creating a Tar and Systemctl tools, and I found those to be a little too overwelming so I decided to start simple and this app is the perfect target, not only I can edit it directly, but also I could explore some of the advantages of using an interactive tui, like when pressing enter after www/news post
And I have a lot of fun, I decided that to make things easier for users of shellcms_bulma I have to add the same interactivity but addressing all the moments where the console ask for an action.
Guided by that then I conceptualized: first using both dialog
and gum
, yes I know gum requires dependencies and installing things, but it will autodetect your setup and if dialog
is present and not gum it will use it, I just created two switches at the begining -i and -igum
.
And with the refactors done to the code voltaire! now you can just use shellcms_b -i/-igum
and you will be good to go.

Results on gum could be polished further but really the feel is a little more modern.

Tags: shellcms_bulma