all repos — searchix @ d6e117bb9aeb2bae23dedd51b59b6e6f139e8a4f

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

feat: exit after rebuilding index if `--replace` is specified
Alan Pearce alan@alanpearce.eu
Fri, 17 May 2024 12:25:49 +0200
commit

d6e117bb9aeb2bae23dedd51b59b6e6f139e8a4f

parent

af2068f882b390778023617e6c69c9274b346cde

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M searchix.gosearchix.go
@@ -87,6 +87,9 @@ err = importer.Start(cfg, write, *replace) 		if err != nil {
 			log.Fatalf("Failed to build index: %v", err)
 		}
+		if *replace {
+			return
+		}
 	}
 
 	c := make(chan os.Signal, 2)