From 9e48a1db299bd9a12915f13f60302dedbec25d54 Mon Sep 17 00:00:00 2001 From: k1LoW Date: Sun, 28 Dec 2025 10:35:11 +0900 Subject: [PATCH 1/2] feat: add type and variable aliases for os/exec compatibility --- exec.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 { From 844190e3d08d50efa4ebab5fc174f203a6f9aa2e Mon Sep 17 00:00:00 2001 From: k1LoW Date: Sun, 28 Dec 2025 10:38:06 +0900 Subject: [PATCH 2/2] chore: bump up go directive version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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