Skip to content
Snippets Groups Projects
Commit 3bc0eaf5 authored by Andreas Schärtl's avatar Andreas Schärtl
Browse files

Add src/luo

- It's the command line tool that will use the ulocollect lib.

- It's a Git submodule.
parent 476c0852
No related branches found
No related tags found
No related merge requests found
...@@ -13,3 +13,6 @@ ...@@ -13,3 +13,6 @@
[submodule "src/ulocollect"] [submodule "src/ulocollect"]
path = src/ulocollect path = src/ulocollect
url = git@gitlab.cs.fau.de:kissen/ulocollect.git url = git@gitlab.cs.fau.de:kissen/ulocollect.git
[submodule "src/luo"]
path = src/luo
url = git@gitlab.cs.fau.de:kissen/luo.git
package main
import (
"gl.kwarc.info/supervision/schaertl_andreas/ulocollect/core"
"log"
)
func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
s := core.LocalScheduler{
Dest: core.DummyImporter{},
}
c := core.FileSystemCollecter{
Path: "/home/ats/Synchronized/Dokumente",
}
id, err := s.Submit(&c)
if err != nil {
log.Fatal(err)
}
log.Printf("submitted with id=%v", id)
if err := s.WaitFor(id); err != nil {
log.Fatal(err)
}
}
luo @ a8bedb3c
Subproject commit a8bedb3cf0adb15ad8a611a6805fc5683ecbe9ac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment