mirror of
https://github.com/taigrr/systemctl.git
synced 2025-10-05 08:16:53 +08:00
use CommandContext
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
Reference in New Issue
Block a user