You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
When writing new operations, it's not easy to put complex logic into basic shell commands. If abstraction level is high, StringCommand becomes a complete bash script.
Consider creating json operation, smth like jq. No-dependency solution is either fetch file from remote, edit in-python and send back, or use horrible bash code within Command.
Describe the solution you'd like
It would be nice to execute arbitrary code on remote, python is pre-installed on almost all modern OS.
Ideas required
I am trying to implement such operation, but suggestions are needed 🤗
Two approaches come in mind:
Just pass .py file and arguments to python CLI
Easy, straightforward, but not very convenient/readable from client code
Use inspect to get source code of passed lambda, write lambda call to file and execute
More readable, but more dangerous too. Using variables from outer scope will throw at runtime, for example
Is your feature request related to a problem? Please describe
When writing new operations, it's not easy to put complex logic into basic shell commands. If abstraction level is high,
StringCommand
becomes a complete bash script.Consider creating
json
operation, smth likejq
. No-dependency solution is either fetch file from remote, edit in-python and send back, or use horrible bash code withinCommand
.Describe the solution you'd like
It would be nice to execute arbitrary code on remote, python is pre-installed on almost all modern OS.
Ideas required
I am trying to implement such operation, but suggestions are needed 🤗
Two approaches come in mind:
.py
file and arguments to python CLIEasy, straightforward, but not very convenient/readable from client code
inspect
to get source code of passed lambda, write lambda call to file and executeMore readable, but more dangerous too. Using variables from outer scope will throw at runtime, for example
Examples:
1.
2:
If you have vision of this operation or any concerns, please share 😊
The text was updated successfully, but these errors were encountered: