d2py.tasks.utils# 任务型事务辅助函数 Module Contents# Functions# communicate_cmd(cmd[, cwd, indent]) 运行命令行执行任务 async d2py.tasks.utils.communicate_cmd(cmd, cwd=None, indent=2, **kwds)[源代码]# 运行命令行执行任务 Args:cmd: 命令行任务 cwd: 当前工作目录 indent: 命令行打印信息缩进位数 Return:返回命令任务执行的打印信息 参数: cmd (str) cwd (str | None) indent (int) 返回类型: str