Open
Description
Description
A simple web interface wrapper for the PsySh tinker-like CLI utility in #1279
Config
- Enabled yes / no (possibly automatic yes in 'local'?)
- Forced to no in Prod etc? I.e. don't even discover it in Prod? For security. If someone wants to test something they can copy the code down to a test environment with a test-copy of the database so it forces good practice.
- Accessible on route get /__shell or __debugshell whatever the utility ultimately gets called?
- Layout cols/rows/width for windows A and B? Or just have that in a cookie entirely?
Layout
- Two cols OR two rows
- One containing PHP code to execute in PsySh CLI
- The other containing the response
- The 'response' should append not clear previous, it can use the built-in code highlighting etc...
- Draggable separator, idk like min-width 20%, but user selectable
- Simple cookie to remember the layout and width or that might be annoying to implement so maybe just global config
Buttons
- Execute code
- Swap code/result
- Swap cols/rows
- Clear result
- Clear code
- Copy all?
Benefits
Usage
- Type code into the code window
- Hit test button, and see response from PsySh CLI utility, NOT interactive session, this is run, exit, and output parsed
- Adjust code and re-run as needed
- Output appended to the output window
- Can be manually cleared