summaryrefslogtreecommitdiffstats
path: root/cmd-exec.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-09 17:33:18 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-09 17:33:18 +0100
commit00b5b83dcff4904aeb18760caa193fa3393241e0 (patch)
tree447d4d5249e659de8c0a062559bb58f739220322 /cmd-exec.go
parent04040c928142db92d2ef2d4b43ad4701392e5ceb (diff)
Fixed terminal output (support escape and control characters)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'cmd-exec.go')
-rw-r--r--cmd-exec.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-exec.go b/cmd-exec.go
index 3f1ee97..c988f95 100644
--- a/cmd-exec.go
+++ b/cmd-exec.go
@@ -78,7 +78,7 @@ func execCmd(ctx *cli.Context) error {
}
exitChan := make(chan exitResult, 1)
- IOsk.On("disconnection", func(err error) {
+ IOSkClient.On("disconnection", func(err error) {
Log.Debugf("WS disconnection event with err: %v\n", err)
exitChan <- exitResult{err, 2}
})
@@ -96,15 +96,15 @@ func execCmd(ctx *cli.Context) error {
}
}
- IOsk.On(xaapiv1.ExecOutEvent, func(ev xaapiv1.ExecOutMsg) {
+ IOSkClient.On(xaapiv1.ExecOutEvent, func(ev xaapiv1.ExecOutMsg) {
outFunc(ev.Timestamp, ev.Stdout, ev.Stderr)
})
- IOsk.On(xaapiv1.ExecExitEvent, func(ev xaapiv1.ExecExitMsg) {
+ IOSkClient.On(xaapiv1.ExecExitEvent, func(ev xaapiv1.ExecExitMsg) {
exitChan <- exitResult{ev.Error, ev.Code}
})
- IOsk.On(xaapiv1.EVTProjectChange, func(ev xaapiv1.EventMsg) {
+ IOSkClient.On(xaapiv1.EVTProjectChange, func(ev xaapiv1.EventMsg) {
prj, _ := ev.DecodeProjectConfig()
Log.Infof("Event %v (%v): %v", ev.Type, ev.Time, prj)
})