Skip to content

Allow timeout for Exec to avoid hanging #225

Open
@rcowham

Description

@rcowham

It would be nice to be able to specify a timeout to avoid commands hanging during execution.

Maybe something like the existing WithEnv(), but instead WithTimeout() or WithWaitDelay() to support the new (Go 1.20) WaitDelay?

https://pkg.go.dev/os/exec#Cmd.WaitDelay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions