Supplement Bash Scripts with Python
Closed this issue · 1 comments
NilsG-S commented
- https://github.com/tomerfiliba/plumbum
- https://github.com/amoffat/sh
- https://docs.python.org/3.6/library/pipes.html
Two strategies:
- Replace Bash scripting entirely, e.g. plumbum, sh
- Use both, i.e. write helpers in Python that are called from Bash scripts
NilsG-S commented
Put commands on a stack such that if the overall command fails, the program performs an "undo" on previously completed commands to return the system to a prior state?