package
Version:
v0.0.0-...-6e2457b
Opens a new window with list of versions in this module.
Published: Nov 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Run 在给定的上下文中执行指定的命令,并返回执行结果。
它使用 context.Context 来支持取消操作,允许从运行的命令中传递信号。
此函数封装了 os/exec 包的 CommandContext 方法,简化了命令执行的过程。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.