Documentation ¶
Overview ¶
Package osutil contains high-level utility functions for operating system functionality.
Package osutil contains high-level utility functions for operating system functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunResult ¶
type RunResult struct { // Started is true if the process was started successfully. Started bool Aborted bool }
RunResult contains information about process run via RunWithAbort.
func RunWithAbort ¶
RunWithAbort runs an exec.Cmd with context cancellation/aborting. The command will have been waited for when this function returns.
This function returns an error if the command failed to start. This function always returns a valid RunResult, even in case of errors.
Click to show internal directories.
Click to hide internal directories.