summaryrefslogtreecommitdiff
path: root/qface/shell.py
blob: 3d34d897c06e778c595ee3136a2b6bd4c5ff86cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import click
from subprocess import call

"""
API for interacting with the system shell
"""


def sh(cmd, **kwargs):
    """
    runs the given cmd as shell command
    """
    if not cmd:
        return
    click.echo('$ {0}'.format(cmd))
    return call(cmd, shell=True, **kwargs)