warren run pipes to deamon, rm binaries acidently added
This commit is contained in:
parent
c3385f8495
commit
059ce9875c
|
@ -1,3 +1,5 @@
|
||||||
.*.swp
|
.*.swp
|
||||||
/warren
|
/warren
|
||||||
/deploy
|
/deploy
|
||||||
|
/cmd/warren/warren
|
||||||
|
/cmd/warrend/warrend
|
||||||
|
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"github.com/dballard/warren/lib/warren"
|
"github.com/dballard/warren/lib/warren"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
|
"strings"
|
||||||
// "os"
|
// "os"
|
||||||
// "os/exec"
|
// "os/exec"
|
||||||
// "time"
|
// "time"
|
||||||
|
@ -28,9 +29,11 @@ func runRun(cmd *Command, args ...string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := net.Dial(warren.CmdSockType(), warren.CmdSockAddr())
|
s, err := net.Dial(warren.CmdSockType(), warren.CmdSockAddr())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error connecting to warrend:", err)
|
log.Fatal("Error connecting to warrend:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.Write([]byte(strings.Join(args, " ")))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue