Skip to content

Commit 7b1d5f9

Browse files
authored
Merge pull request #14 from k1LoW/alias
feat: add type and variable aliases for os/exec compatibility
2 parents 4169021 + 844190e commit 7b1d5f9

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

exec.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,19 @@ import (
77
"time"
88
)
99

10-
type ExitError = exec.ExitError
10+
// Type aliases for os/exec types.
11+
type (
12+
Cmd = exec.Cmd
13+
Error = exec.Error
14+
ExitError = exec.ExitError
15+
)
16+
17+
// Variable aliases for os/exec variables.
18+
var (
19+
ErrDot = exec.ErrDot
20+
ErrNotFound = exec.ErrNotFound
21+
ErrWaitDelay = exec.ErrWaitDelay
22+
)
1123

1224
// Exec represents an command executer.
1325
type Exec struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/k1LoW/exec
22

3-
go 1.22
3+
go 1.24

0 commit comments

Comments
 (0)