Documentation ¶
Index ¶
- func Exec(shell string) (string, error)
- func Execf(shell string, args ...any) (string, error)
- func ExecfAsync(shell string, args ...any) error
- func ExecfWithDir(dir, shell string, args ...any) (string, error)
- func ExecfWithOutput(shell string, args ...any) error
- func ExecfWithPipe(ctx context.Context, shell string, args ...any) (out io.ReadCloser, err error)
- func ExecfWithTTY(shell string, args ...any) (string, error)
- func ExecfWithTimeout(timeout time.Duration, shell string, args ...any) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecfWithDir ¶
ExecfWithDir 在指定目录下执行 shell 命令
func ExecfWithOutput ¶
ExecfWithOutput 执行 shell 命令并输出到终端
func ExecfWithPipe ¶
ExecfWithPipe 执行 shell 命令并返回管道
func ExecfWithTTY ¶
ExecfWithTTY 在伪终端下执行 shell 命令
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.