Feature Request: Show Command Output in Web UI
Thanks for implementing the command trigger I requested! It would be great if the output from the script/command could be displayed in the web ui so the user knows what's happening. I implemented this in my fork https://github.com/nopoz/wud/tree/merged_build and attached an animated gif to show an example of it working.
My code changes are pretty messy so I don't think a straight PR would be possible and I'm sure you could implement something cleaner that wouldn't re-arrange as much of the existing code. :smirk:
The workflow is:
- the user manually clicks the trigger in the UI
- a pop-up window shows the script output
- when the script is complete, the update window shows a close button on the bottom of the pop-up window
- when the user clicks the close button, the UI is refreshed to show the newly updated container version
EDIT 2025-02-28: Previously referenced container store and pruning issues have been sorted out in fork build 7.0.7 ~~This is mostly working in my fork. The only problem is when the UI is refreshed after the user clicks the close button, the updated container version isn't always shown - this may be some race condition happening and it differs when it's a local docker instance vs remote? I'm not sure. It is running the latest version on the docker host after the update and I made the script wait to make sure the script wasn't getting ahead of wud. Manually clicking the "watch now" button typically fixes this. The container store isn't being updated properly I assume?~~
I believe I've sorted out the container store and UI refresh bugs in the latest commit https://github.com/nopoz/wud/tree/merged_build - I've labeled it as v7.0.7 for tracking purposes.
👍 On this feature. I have the Command trigger working to my liking, but not very verbose without stdout visibility coming back to UI