warren run pipes to deamon, rm binaries acidently added
This commit is contained in:
parent
c3385f8495
commit
059ce9875c
|
@ -1,3 +1,5 @@
|
|||
.*.swp
|
||||
/warren
|
||||
/deploy
|
||||
/cmd/warren/warren
|
||||
/cmd/warrend/warrend
|
||||
|
|
|
@ -5,6 +5,7 @@ import (
|
|||
"github.com/dballard/warren/lib/warren"
|
||||
"log"
|
||||
"net"
|
||||
"strings"
|
||||
// "os"
|
||||
// "os/exec"
|
||||
// "time"
|
||||
|
@ -28,9 +29,11 @@ func runRun(cmd *Command, args ...string) {
|
|||
return
|
||||
}
|
||||
|
||||
_, err := net.Dial(warren.CmdSockType(), warren.CmdSockAddr())
|
||||
s, err := net.Dial(warren.CmdSockType(), warren.CmdSockAddr())
|
||||
if err != nil {
|
||||
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