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 ...@@ -19,6 +19,7 @@ package bitmask
import ( import (
"encoding/json" "encoding/json"
"net/textproto" "net/textproto"
"strings"
) )
const ( const (
...@@ -59,9 +60,9 @@ func (l *launcher) send(cmd string, args ...string) error { ...@@ -59,9 +60,9 @@ func (l *launcher) send(cmd string, args ...string) error {
args = []string{} args = []string{}
} }
command := struct { command := struct {
Cmd string `json:"cmd"` Cmd string `json:"cmd"`
Args []string `json:"args"` Args string `json:"args"`
}{cmd, args} }{cmd, strings.Join(args, " ")}
bytesCmd, err := json.Marshal(command) bytesCmd, err := json.Marshal(command)
if err != nil { if err != nil {
return err 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