Documentation
¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- func CopyFile(srcPath, dstPath string) error
- func DeleteFilesInDir(dirPath string) error
- func ExeShCmdStdout(command string, args ...string) (string, error)
- func ExtractCmdAndArgs(cmdLine string, sudo bool) (string, []string)
- func RunCmdOutput(command string, args ...string) (string, error)
- func RunCmdStart(command string, args ...string) (*exec.Cmd, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFilesInDir ¶
DeleteFilesInDir deletes all files in the directory dirPath.
func ExeShCmdStdout ¶
ExeShCmdStdout executes a shell command capturing the standard output.
func ExtractCmdAndArgs ¶
ExtractCmdAndArgs extracts the command and its arguments from the output string.
func RunCmdOutput ¶
RunCmdOutput runs the specified command and returns its standard output as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.