summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qface/shell.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/qface/shell.py b/qface/shell.py
new file mode 100644
index 0000000..5496923
--- /dev/null
+++ b/qface/shell.py
@@ -0,0 +1,9 @@
+import click
+from subprocess import call
+
+
+def sh(cmd, **kwargs):
+ if not cmd:
+ return
+ click.echo('$ {0}'.format(cmd))
+ return call(cmd, shell=True, **kwargs)