Skip to content
Snippets Groups Projects
Verified Commit 1951fb25 authored by meskio's avatar meskio :tent:
Browse files

[bug] the nim helper wants the args as space separated

parent 71f0b807
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ package bitmask
import (
"encoding/json"
"net/textproto"
"strings"
)
const (
......@@ -59,9 +60,9 @@ func (l *launcher) send(cmd string, args ...string) error {
args = []string{}
}
command := struct {
Cmd string `json:"cmd"`
Args []string `json:"args"`
}{cmd, args}
Cmd string `json:"cmd"`
Args string `json:"args"`
}{cmd, strings.Join(args, " ")}
bytesCmd, err := json.Marshal(command)
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment