shell/linux/interface.go
2024-07-04 18:08:45 -04:00

26 lines
510 B
Go

package linux
import (
"errors"
)
type LinuxCommand struct {
Options CommandOptions
}
type CommandOptions struct {
Env map[string]string
Sources []string
Command string
Args []string
Cwd string
Shell string
}
// Errors
var (
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")
)