refactor: refactored cli module using corba
In this PR, I have made several modifications to the command-line code. These modifications may be helpful to improve the project's structure, maintainability and more easier to add new features.
When it comes to improving project maintainability, just optimizing command line code may not be enough. Forked from clash, there are many things to do here such as eliminating global variables. This requires a lot of work and definitely make it no longer "clash" so that's how I think why there hasn't anyone done such work before. Also, we would like to do our best to support legacy clients without affecting development (such as Clash for Windows), therefore it is supposed to introducing no big modification to CLI.
New features have been added to HTTP controller in previous development, and we have no idea what to add to CLI command.
Thanks for the PR, but it'll hold off for a while because it is not the time.
When it comes to improving project maintainability, just optimizing command line code may not be enough. Forked from clash, there are many things to do here such as eliminating global variables. This requires a lot of work and definitely make it no longer "clash" so that's how I think why there hasn't anyone done such work before. Also, we would like to do our best to support legacy clients without affecting development (such as Clash for Windows), therefore it is supposed to introducing no big modification to CLI.
New features have been added to HTTP controller in previous development, and we have no idea what to add to CLI command.
Thanks for the PR, but it'll hold off for a while because it is not the time.
Thanks for your comments.