about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-03-24 14:26:19 +0100
committerAlan Pearce2025-03-24 14:26:19 +0100
commita9ce8ee955b7e8e7b415fe60502c793e73887da0 (patch)
tree31f6285c200f874ddc273f9e23819cf87f99aa3c
parent523d9dcd4cc2932e5fd4df80cd0cff0d0ca43c38 (diff)
downloadsearchix-a9ce8ee955b7e8e7b415fe60502c793e73887da0.tar.lz
searchix-a9ce8ee955b7e8e7b415fe60502c793e73887da0.tar.zst
searchix-a9ce8ee955b7e8e7b415fe60502c793e73887da0.zip
refactor: remove duplicate update flag
-rw-r--r--cmd/searchix-web/main.go3
-rw-r--r--justfile3
2 files changed, 1 insertions, 5 deletions
diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go
index c70b4d3..8e8a4c5 100644
--- a/cmd/searchix-web/main.go
+++ b/cmd/searchix-web/main.go
@@ -28,7 +28,6 @@ var (
 	)
 	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 @@ func main() {
 		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)
diff --git a/justfile b/justfile
index 200457b..1f29874 100644
--- a/justfile
+++ b/justfile
@@ -62,6 +62,3 @@ dev:
 
 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 }}