Browse Source

add correct commands

main
David Haukeness 2 years ago
parent
commit
0d4a28160e
  1. 9
      libkeybase.go

9
libkeybase.go

@ -80,13 +80,14 @@ func (a *ChatAPI) Start() (in, out chan string, err chan error) { @@ -80,13 +80,14 @@ func (a *ChatAPI) Start() (in, out chan string, err chan error) {
return
}
func (a *ChatAPI) _run(in, out chan string, e chan error, args ...string) {
func (a *ChatAPI) _run(in, out chan string, e chan error) {
// build the base command, add homedir and args
cmdStrings := a.opts.buildBaseCommand(args...)
readCmd := a.opts.buildBaseCommand("chat", "api-listen")
writeCmd := a.opts.buildBaseCommand("chat", "api")
// set up the command
cmd_reader := exec.CommandContext(a.ctx, a.opts.locateKeybase(), cmdStrings...)
cmd_writer := exec.CommandContext(a.ctx, a.opts.locateKeybase(), cmdStrings...)
cmd_reader := exec.CommandContext(a.ctx, a.opts.locateKeybase(), readCmd...)
cmd_writer := exec.CommandContext(a.ctx, a.opts.locateKeybase(), writeCmd...)
// grab the process stdin and stdout pipes
keyOut, err := cmd_reader.StdoutPipe()

Loading…
Cancel
Save