aboutsummaryrefslogtreecommitdiff
path: root/helpers/actions/run_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/actions/run_command.py')
-rw-r--r--helpers/actions/run_command.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/helpers/actions/run_command.py b/helpers/actions/run_command.py
deleted file mode 100644
index 1e80c1e..0000000
--- a/helpers/actions/run_command.py
+++ /dev/null
@@ -1,13 +0,0 @@
1import shlex, subprocess
2
3def run(action, command="", wait=False, **kwargs):
4 action.process = subprocess.Popen(command, shell=True)
5 if wait:
6 action.process.wait()
7
8def description(action, command="", wait=False, **kwargs):
9 message = "running command {}".format(command)
10 if wait:
11 message += " (waiting for its execution to finish)"
12
13 return message