mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
docs: add comments to ExecCommand
This commit is contained in:
parent
aa452d7857
commit
bb8c60a222
@ -97,6 +97,8 @@ func (gl *genericList) scan(sep rune, s fmt.ScanState, ch rune) error {
|
||||
return gl.set(sep, bytes.TrimSpace(token))
|
||||
}
|
||||
|
||||
// ExecCommand executes a command and returns the output as a string
|
||||
// It returns an error if the command fails or the output is empty
|
||||
func ExecCommand(l SpaceSepList) (pass string, err error) {
|
||||
var stdout bytes.Buffer
|
||||
var stderr bytes.Buffer
|
||||
|
Loading…
x
Reference in New Issue
Block a user