AHK and Autoit implemented

master
Leonardo Domingues 2021-12-15 10:44:27 -03:00
parent b727ad8d39
commit f951956db5
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package autohotkey
import (
"go.digitalcircle.com.br/open/replaycli-go/api"
)
type Cli struct {
*api.ApiCli
}
func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()}
return ret
}
func (c *Cli) Test() (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/ahk/test", nil, &ret)
return ret, err
}
func (c *Cli) Do(data string) (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/ahk/do", data, &ret)
return ret, err
}

24
api/autoit/cli.go 100644
View File

@ -0,0 +1,24 @@
package autoit
import (
"go.digitalcircle.com.br/open/replaycli-go/api"
)
type Cli struct {
*api.ApiCli
}
func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()}
return ret
}
func (c *Cli) Test() (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/autoit/test", nil, &ret)
return ret, err
}
func (c *Cli) Do(data string) (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/autoit/do", data, &ret)
return ret, err
}