add remote flag to send remote commands to server

Mentioned in #45.
This commit is contained in:
Gokcehan committed 2016-12-19 21:28:57 +03:00
1 parent 2085b6d797
commit 0298630114
3 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ func loadFiles() (list []string, copy bool, err error) {
return
}
func sendServer(cmd string) error {
func sendRemote(cmd string) error {
c, err := net.Dial("unix", gSocketPath)
if err != nil {
return fmt.Errorf("dialing to send server: %s", err)