summaryrefslogtreecommitdiffstats
path: root/goctl.go
diff options
context:
space:
mode:
Diffstat (limited to 'goctl.go')
-rw-r--r--goctl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/goctl.go b/goctl.go
index a94122a..b68734a 100644
--- a/goctl.go
+++ b/goctl.go
@@ -36,7 +36,7 @@ type Goctl struct {
type Handler interface {
Name() string
- Run([]string) string
+ Run(*Goctl, []string) string
}
func init() {
@@ -158,7 +158,7 @@ func (gc *Goctl) reader(c io.ReadWriteCloser) error {
gc.logger.Debug("Got command.", "cmd", cmd)
var resp string
if h := gc.handlers[cmd[0]]; h != nil {
- resp = h.Run(cmd[1:])
+ resp = h.Run(gc, cmd[1:])
} else {
resp = fmt.Sprintf("ERROR: unknown command: '%s'.", cmd[0])
}