Documentation ¶
Index ¶
- func CallWithTty(callTty *os.File, fn Callback) (err error)
- func Command(callTty *os.File, name string, argv ...string) (err error)
- func CopyIoWithCancel(tag string, src io.ReadWriter, dst io.Writer) (cancel context.CancelFunc, err error)
- func CopyWithCancel(tag string, src, dst *os.File) (cancel context.CancelFunc, err error)
- func Go(fn func())
- func GoWithLocalContext(data interface{}, fn func())
- func GoWithMainContext(data interface{}, fn func())
- func IsLocalContextValid() (valid bool)
- type CLocalContext
- type Callback
- type SpawnCallback
- type SpawnResize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallWithTty ¶
CallWithTty will wrap the given *os.File with new pty/tty instances and call the fn Callback with the appropriate input and output *os.File handles
func CopyIoWithCancel ¶
func CopyIoWithCancel(tag string, src io.ReadWriter, dst io.Writer) (cancel context.CancelFunc, err error)
func CopyWithCancel ¶
func GoWithLocalContext ¶
func GoWithLocalContext(data interface{}, fn func())
func GoWithMainContext ¶
func GoWithMainContext(data interface{}, fn func())
func IsLocalContextValid ¶
func IsLocalContextValid() (valid bool)
Types ¶
type CLocalContext ¶
type CLocalContext struct {
Data interface{}
}
func GetLocalContext ¶
func GetLocalContext() (ac *CLocalContext, err error)
type SpawnCallback ¶
type SpawnCallback = func() (err error)
type SpawnResize ¶
func Spawn ¶
func Spawn(device io.ReadWriter, startup Callback, shutdown SpawnCallback) (cancel context.CancelFunc, resize SpawnResize, wg *sync.WaitGroup, err error)
Click to show internal directories.
Click to hide internal directories.