use CommandContext

This commit is contained in:
Tai Groot
2021-05-14 16:12:56 -07:00
parent 7762c3af12
commit 8bb696fb51
3 changed files with 44 additions and 0 deletions

View File

@@ -11,4 +11,7 @@ var (
// ErrExecTimeout means that the provided context was done before the command finished execution.
ErrExecTimeout = errors.New("command timed out")
// ErrInsufficientPermissions means the calling executable was invoked without enough permissions to run the selected command
ErrInsufficientPermissions = errors.New("insufficient permissions for action")
)