New command "search file". Update core.

This commit is contained in:
Kleissner
2021-12-13 04:18:07 +01:00
parent 1d4d6c185f
commit 2e8f1a57df
5 changed files with 41 additions and 10 deletions

View File

@@ -70,12 +70,14 @@ func init() {
userAgent := appName + "/" + core.Version
core.Init(userAgent)
backend = core.Init(userAgent)
}
var backend *core.Backend
func main() {
apiListen, apiKey, watchPID := parseCmdParams()
startAPI(apiListen, apiKey)
startAPI(backend, apiListen, apiKey)
go processExitMonitor(watchPID)