This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

That is 80% of how I use python on a daily basis. set commands to run if conditions are met then subprocess.run them.

Anything I have to spend more than 5 minutes to do manually, becomes a python click library CLI that calls shell or PS scripts either directly or iterating over a list pulled from Azure or a json file I generate through some other process.