Repository navigation
ShellScripts that read from stdin
You know you can run a Python script passing it via stdin to the Python interpreter instead of having to save it into a file? Now can make this happen, so you can run any shell that accepts reading the program from stdin (like bash, Python or virtually any REPL in existence) without the hassle of persisting the script content into the file system.
For that, add the parameter consumes stdin to your shell and then all its scripts will be passed through stdin.
[shells/python]
command {
- python
}
consumes stdin
[shells/python/scripts/test]
print("This Python program doesn't need to live in the file system as a separate file! Yay!")