mirror of
https://github.com/DominicBreuker/pspy.git
synced 2026-11-06 18:21:51 +00:00
add tests for main method
This commit is contained in:
1 parent
3eed2c29aa
commit
72bbfac3e0
4 files changed
+125
-14
No files matched your search
+7
-4
@@ -7,6 +7,7 @@ import (
|
||||
"os/signal"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/dominicbreuker/pspy/internal/config"
|
||||
"github.com/dominicbreuker/pspy/internal/fswatcher"
|
||||
@@ -69,10 +70,12 @@ func root(cmd *cobra.Command, args []string) {
|
||||
logger := logging.NewLogger()
|
||||
|
||||
cfg := &config.Config{
|
||||
RDirs: rDirs,
|
||||
Dirs: dirs,
|
||||
LogPS: logPS,
|
||||
LogFS: logFS,
|
||||
RDirs: rDirs,
|
||||
Dirs: dirs,
|
||||
LogPS: logPS,
|
||||
LogFS: logFS,
|
||||
DrainFor: 1 * time.Second,
|
||||
TriggerEvery: 100 * time.Millisecond,
|
||||
}
|
||||
fsw := fswatcher.NewFSWatcher()
|
||||
defer fsw.Close()
|
||||
|
||||
Reference in new issue
Block a user