Flask-Shell2HTTP
Flask-Shell2HTTP copied to clipboard
[New Feature] intercepting arguments before command execution
Discussed in https://github.com/eshaan7/Flask-Shell2HTTP/discussions/56
Originally posted by tomvanderputte November 6, 2023 Is it possible to intercept and change the dynamic arguments before the command is triggered? The reason is: the arguments point to input/output files in a certain location. The application that sends the POST requests is not aware of this location (nor do I want it to be), so it sends only the filename.
So I want to edit the arguments/parameters to predfix the sent arguments with the correct path. How could I achieve this?
Supposedly the "args" should be available in the context parameter within the callback function, but when accessed using
def list_wallets(context, future):
print(context) #nothing is printed out here
This is the sole reason why I had to drop this whole thing, I had to do my own solution from scratch (since I am not a python developer)