实用程序¶
开箱即用的实用程序组件。这些是
仅执行众所周知的二进制文件(例如 )
,并用作教程材料或之间的粘合作
工作流中有意义的阶段。/bin/cp
- torchx.components.utils 中。echo(msg: str = 'hello world') → torchx.specs.api.AppDef[来源]¶
将消息回显到 stdout(调用 /bin/echo)
- 参数
msg – 消息回声
- torchx.components.utils 中。touch(file: str) → torchx.specs.api.AppDef[来源]¶
触摸文件(调用 /bin/touch)
- 参数
file (文件) – 要创建的文件