HHVMCraft icon indicating copy to clipboard operation
HHVMCraft copied to clipboard

Server CLI

Open andrewvy opened this issue 9 years ago • 4 comments

When executing the script, it should open up a shell interface. Allows simple management commands like kick, ban, give, etc.

andrewvy avatar Feb 25 '16 22:02 andrewvy

Might be worth taking a look at Symfony's Console component. Are the kick/ban methods already in place?

elliotwms avatar Feb 26 '16 11:02 elliotwms

The kick and ban commands aren't implemented yet, I should probably create a new issue for all the ones I want to add.

The console part is a little tricky, ReactPHP is in an infinite loop and won't be able to display a console prompt immediately.

andrewvy avatar Feb 26 '16 14:02 andrewvy

In which case would you need a separate socket connection to feed console commands into, or would it be able to exist as part of the main thread?

elliotwms avatar Feb 26 '16 14:02 elliotwms

I've been looking at https://github.com/mcrumm/pecan/blob/develop/README.md and it looks like there's ways to integrate it within a pre-existing application. I might give this a shot first.

andrewvy avatar Feb 26 '16 15:02 andrewvy