mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-28 04:46:42 -04:00
Implement serving passphrase from daemon
This commit is contained in:
+2
-7
@@ -8,13 +8,8 @@ import (
|
||||
|
||||
func main() {
|
||||
if len(os.Args) > 1 {
|
||||
switch os.Args[1] {
|
||||
case "client":
|
||||
fmt.Println("RPC Reply: " + daemon.Call())
|
||||
default:
|
||||
daemon.Run()
|
||||
}
|
||||
daemon.Start(os.Args[1])
|
||||
} else {
|
||||
daemon.Run()
|
||||
fmt.Println(daemon.Call())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user