all repos — searchix @ a9ce8ee955b7e8e7b415fe60502c793e73887da0

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: remove duplicate update flag

Alan Pearce
commit

a9ce8ee955b7e8e7b415fe60502c793e73887da0

parent

523d9dcd4cc2932e5fd4df80cd0cff0d0ca43c38

2 files changed, 1 insertion(+), 5 deletions(-)

jump to
M cmd/searchix-web/main.gocmd/searchix-web/main.go
@@ -28,7 +28,6 @@ "print default configuration and exit",
) dev = flag.Bool("dev", false, "enable live reloading and nicer logging") replace = flag.Bool("replace", false, "replace existing index and exit") - update = flag.Bool("update", false, "update index and exit") version = flag.Bool("version", false, "print version information") cpuprofile = flag.String("cpuprofile", "", "enable CPU profiling and save to `file`") )
@@ -98,7 +97,7 @@ if err != nil {
logger.Fatal("Failed to create importer", "error", err) } - if !exists || *replace || *update { + if !exists || *replace { err := imp.Start(ctx, true, nil) if err != nil { logger.Fatal("Failed to start importer", "error", err)
M justfilejustfile
@@ -62,6 +62,3 @@ modd
reindex *flags: wgo run --exit ./cmd/searchix-web --config config.toml --replace --dev {{ flags }} - -update *flags: - wgo run --exit ./cmd/searchix-web --config config.toml --update --dev {{ flags }}