aboutsummaryrefslogtreecommitdiff
path: root/awwan.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-16 22:59:22 +0700
committerShulhan <ms@kilabit.info>2023-11-16 22:59:22 +0700
commit4c17c972104e2dc50dbee4138c992f620e7f10bd (patch)
tree49b73e28694857fb490dccda035214f11f5047f0 /awwan.go
parentf2b71ae4bf9d264d5c6ea51edc2d402e462e2033 (diff)
downloadawwan-4c17c972104e2dc50dbee4138c992f620e7f10bd.tar.xz
all: refactoring, rename Request to ExecRequest
Diffstat (limited to 'awwan.go')
-rw-r--r--awwan.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/awwan.go b/awwan.go
index 2112089..2c5fe79 100644
--- a/awwan.go
+++ b/awwan.go
@@ -163,7 +163,7 @@ func (aww *Awwan) Encrypt(file string) (fileVault string, err error) {
}
// Local execute the script in the local machine using shell.
-func (aww *Awwan) Local(req *Request) (err error) {
+func (aww *Awwan) Local(req *ExecRequest) (err error) {
var (
logp = `Local`
sessionDir = filepath.Dir(req.scriptPath)
@@ -224,7 +224,7 @@ out:
}
// Play execute the script in the remote machine using SSH.
-func (aww *Awwan) Play(req *Request) (err error) {
+func (aww *Awwan) Play(req *ExecRequest) (err error) {
var (
logp = `Play`
sessionDir = filepath.Dir(req.scriptPath)