summaryrefslogtreecommitdiff
path: root/internal/cli/cli.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-16 08:43:55 +0300
committerPaul Buetow <paul@buetow.org>2026-04-16 08:43:55 +0300
commitedeffd05dc62c4c3d747cc41067bf4e1814f300a (patch)
tree11881c2f5a40013b3885e4a6b51b8a4f00e56f80 /internal/cli/cli.go
parent71211a54519e13c9ba5ba928352fa4fef001240b (diff)
Add excluded_hosts feature: store in SQLite, expose CLI subcommands
Adds an excluded_host table to the SQLite schema and three new CLI subcommands (exclude, unexclude, list-excluded) so operators can mark hosts that are no longer expected to send updates. The IsExcludedHost and LoadExcludedHosts storage helpers are ready for the Prometheus alerting endpoint (task d4). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/cli.go')
-rw-r--r--internal/cli/cli.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/cli/cli.go b/internal/cli/cli.go
index e791512..8c22d6e 100644
--- a/internal/cli/cli.go
+++ b/internal/cli/cli.go
@@ -30,6 +30,12 @@ func Execute(args []string) error {
return runImport(args[1:])
case "query":
return runQuery(args[1:])
+ case "exclude":
+ return runExclude(args[1:])
+ case "unexclude":
+ return runUnexclude(args[1:])
+ case "list-excluded":
+ return runListExcluded(args[1:])
case "test":
return runTests()
default: