mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
eval: add builtinCommand struct
This commit is contained in:
parent
b7e9833317
commit
9a65a6ca89
|
@ -25,6 +25,11 @@ type externalCommand struct {
|
|||
ios [3]uintptr
|
||||
}
|
||||
|
||||
type builtinCommand struct {
|
||||
command
|
||||
ios [3]interface{} // either of uintptr or chan string
|
||||
}
|
||||
|
||||
func isExecutable(path string) bool {
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user