diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-22 01:06:38 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-22 01:32:42 +0700 |
| commit | fc7cd444e7d637c291a3f9ba9987ba0335af4809 (patch) | |
| tree | f1a32b5081417a1d64fe2cf88345ecf4494d3f97 /session.go | |
| parent | 4411ca1953c95ddc013e47c55e87303b7290e2cc (diff) | |
| download | awwan-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.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |
