Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/a/c/ackg-0.0.5/test/test_cli.py   ackg(Download)
def run_command(path, cmd, expect=0):
    'runs ackg command and captures output'
    os.chdir(path)
    sys.stdout = outputs = StringIO()
    errcode = ackg.main(cmd, capture_out=True)