Finished a working model of the terminal application if you want to take a look. Its also published to Node's package manager registry, so anyone with Node.JS installed can install it and run it from their terminal.
A nice side effect of modularization is also that it makes it easier for people to submit new commands. I think your current code due to it's simplicity is an excellent example for demonstrating the benefits of modular structures.
each command being a PHP file that registered it's functions in a cmd array
I was wondering about how to manage features like the autoMiner properly, given that it's currently very linear in it's implementation. Maybe a concept where you can buy threads/workers that you can assign tasks to would be an idea
That could be useful. What if, for each command (excluding commands such as help) there was a worker "type". Max quantity of workers could be expanded through upgrades, and each worker type has a different price?
PHP was my first main language. I was building a system to track parts, equipment, and workorders in an engineering company. Nearly failed a couple of classes in highschool because I was always working on the system on my school laptop lol
I used angular 1, but I'm completely impartial to either of them. I'm not very experienced in either, I just used it to use the terminal directive. If you want to take a look, I've merged all the changes on the GitHub page