Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StartupCmd is a command value that is always sent once as the first command. StartupCmd = "__internal_startup__" // UnsupportedCmd is a command value that is sent when an unsupported command is received. UnsupportedCmd = "__internal_unsupported__" )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(makeCmds func(LineIO) map[string]CommandSpec)
func RunWithStreams ¶
RunWithStreams executes an external special remote with the provided input and output streams.
Types ¶
type CommandSpec ¶
func Response0 ¶
func Response0(f func()) CommandSpec
func Response1 ¶
func Response1(f func(s string)) CommandSpec
func Response2 ¶
func Response2(f func(s1, s2 string)) CommandSpec
func Response3 ¶
func Response3(f func(s1, s2, s3 string)) CommandSpec
func ResponseSplit ¶
func ResponseSplit(f func(s []string)) CommandSpec
Click to show internal directories.
Click to hide internal directories.