intercepting arguments before command execution #56
Answered
by
eshaan7
tomvanderputte
asked this question in
Q&A
|
Is it possible to intercept and change the dynamic arguments before the command is triggered? So I want to edit the arguments/parameters to predfix the sent arguments with the correct path. How could I achieve this? |
Answered by
eshaan7
Nov 10, 2023
Replies: 1 comment
|
Hi @tomvanderputte, A way to achieve your use-case is to wrap your command in a script (using sh/bash/python/etc) that modifies the incoming arguments to the desired format before passing them to the actual command. And then expose this script instead of the actual command. |
0 replies
Answer selected by
eshaan7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @tomvanderputte,
A way to achieve your use-case is to wrap your command in a script (using sh/bash/python/etc) that modifies the incoming arguments to the desired format before passing them to the actual command. And then expose this script instead of the actual command.