mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 09:04:10 -04:00
Replace Python endpoint-discovery with --discover flag (replaces #936)
- Add --discover and --discover-output to unpoller; uses first unifi controller from config to probe known API endpoints and write a shareable markdown report. - Add Discoverer interface and RunDiscover(); inputunifi implements Discoverer via unifi.DiscoverEndpoints. - Remove tools/endpoint-discovery/ (Python/Playwright). - Add docs/PR_936_REPLACEMENT.md. .gitignore: test config and report. Requires unpoller/unifi with DiscoverEndpoints (replace in go.mod until unifi release).
This commit is contained in:
@@ -68,12 +68,14 @@ type UnifiPoller struct {
|
||||
|
||||
// Flags represents the CLI args available and their settings.
|
||||
type Flags struct {
|
||||
ConfigFile string
|
||||
DumpJSON string
|
||||
HashPW string
|
||||
ShowVer bool
|
||||
DebugIO bool
|
||||
Health bool
|
||||
ConfigFile string
|
||||
DumpJSON string
|
||||
HashPW string
|
||||
ShowVer bool
|
||||
DebugIO bool
|
||||
Health bool
|
||||
Discover bool
|
||||
DiscoverOutput string
|
||||
*pflag.FlagSet
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user