shell/linux/interface.go

27 lines
510 B
Go
Raw Permalink Normal View History

2024-07-04 22:40:13 +02:00
package linux
import (
"errors"
)
type LinuxCommand struct {
Options CommandOptions
}
type CommandOptions struct {
Env map[string]string
2024-07-05 00:08:45 +02:00
Sources []string
2024-07-04 22:40:13 +02:00
Command string
Args []string
Cwd string
Shell string
}
// Errors
var (
2024-07-04 23:14:10 +02:00
ErrFetchingCwd = errors.New("error fetching cwd")
ErrRunningCmd = errors.New("error running command")
ErrCommandNotFound = errors.New("error command not found")
ErrCommandNotExecutable = errors.New("error command not executable")
2024-07-04 22:40:13 +02:00
)