mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
13 lines
281 B
Go
13 lines
281 B
Go
package eval
|
|
|
|
// Foreign represents a foreign command provider.
|
|
type Foreign interface {
|
|
Call(name string, args []Value) error
|
|
}
|
|
|
|
// Editor is the interface through which the Evaler calls the line editor.
|
|
type Editor interface {
|
|
Foreign
|
|
Bind(key string, function Value) error
|
|
}
|