From edeffd05dc62c4c3d747cc41067bf4e1814f300a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 16 Apr 2026 08:43:55 +0300 Subject: 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 --- internal/cli/cli.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/cli/cli.go') 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: -- cgit v1.2.3