aboutsummaryrefslogtreecommitdiff
path: root/session.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-10-22 01:06:38 +0700
committerShulhan <ms@kilabit.info>2023-10-22 01:32:42 +0700
commitfc7cd444e7d637c291a3f9ba9987ba0335af4809 (patch)
treef1a32b5081417a1d64fe2cf88345ecf4494d3f97 /session.go
parent4411ca1953c95ddc013e47c55e87303b7290e2cc (diff)
downloadawwan-fc7cd444e7d637c291a3f9ba9987ba0335af4809.tar.xz
all: add magic command "#local"
The magic command "#local" define the command to be executed using shell in local environment. Its have effect and can only be used in script that executed using "play". In script that is executed using "local" it does nothing.
Diffstat (limited to 'session.go')
-rw-r--r--session.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/session.go b/session.go
index 90c951d..6df9215 100644
--- a/session.go
+++ b/session.go
@@ -504,6 +504,8 @@ func (ses *Session) executeScriptOnRemote(req *Request, pos linePosition) (err e
err = ses.sshc.conn.Execute(string(stmt.raw))
case statementKindGet:
err = ses.Get(stmt)
+ case statementKindLocal:
+ err = ExecLocal(req, stmt)
case statementKindPut:
err = ses.Put(stmt)
case statementKindSudoGet: