diff options
Diffstat (limited to 'import/main.go')
-rw-r--r-- | import/main.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/import/main.go b/import/main.go deleted file mode 100644 index 76ebdcf..0000000 --- a/import/main.go +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "flag" - "log" - "log/slog" - "searchix/internal/config" - "searchix/internal/importer" -) - -var ( - replace = flag.Bool("replace", false, "whether to replace existing database, if it exists") - configFile = flag.String("config", "config.toml", "config file to use") -) - -func main() { - flag.Parse() - - cfg, err := config.GetConfig(*configFile) - if err != nil { - log.Fatal(err) - } - slog.SetLogLoggerLevel(cfg.LogLevel) - - err = importer.Start(cfg, *replace) - if err != nil { - log.Fatal(err) - } -} |