diff --git a/exec.go b/exec.go index 40cf49a..4b71660 100644 --- a/exec.go +++ b/exec.go @@ -7,7 +7,19 @@ import ( "time" ) -type ExitError = exec.ExitError +// Type aliases for os/exec types. +type ( + Cmd = exec.Cmd + Error = exec.Error + ExitError = exec.ExitError +) + +// Variable aliases for os/exec variables. +var ( + ErrDot = exec.ErrDot + ErrNotFound = exec.ErrNotFound + ErrWaitDelay = exec.ErrWaitDelay +) // Exec represents an command executer. type Exec struct { diff --git a/go.mod b/go.mod index b8206ee..390ce93 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/k1LoW/exec -go 1.22 +go 1.24