github.com/hugelgupf/u-root@v0.0.0-20191023214958-4807c632154c/cmds/core/elvish/edit/eddefs/mode.go (about) 1 package eddefs 2 3 import ( 4 "github.com/u-root/u-root/cmds/core/elvish/edit/ui" 5 "github.com/u-root/u-root/cmds/core/elvish/eval" 6 ) 7 8 // Mode is an editor mode. 9 type Mode interface { 10 ModeLine() ui.Renderer 11 Binding(ui.Key) eval.Callable 12 Teardown() 13 }