mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-27 20:36:30 -04:00
Add high-level function for calling the daemon if it is open
This commit is contained in:
+5
-1
@@ -70,6 +70,10 @@ func main() {
|
||||
os.WriteFile(outputFile, encBytes, 0600)
|
||||
default:
|
||||
// request served data
|
||||
fmt.Println(daemon.Call())
|
||||
if servedData := daemon.CallDaemonIfOpen(); servedData != nil {
|
||||
fmt.Println(string(servedData))
|
||||
} else {
|
||||
fmt.Println("No RCW daemon available")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user