

def run(cmd, args=[], source='', cwd=None, env=None, callback=None):
    '\n    Run command. "tsc", "cake", etc.\n    Will run on thread if callback function is passed.\n    '
    if callback:
        thread = threading.Thread(target=(lambda cb: cb(_run(cmd, args=args, source=source, cwd=cwd, env=env))), args=(thread,))
        thread.start()
        ThreadProgress(thread, 'Compiling', '')
    else:
        res = _run(cmd, args=args, source=source, cwd=cwd, env=env)
        return res

dataset/ETHPy150Open lavrton/sublime-better-typescript/TypeScript.py run/VarMisuse@78/123 `callback`->`thread`