Skip to content

chore: promote develop to main - #119

Merged
mikemadeja merged 4 commits into
mainfrom
develop
Sep 26, 2026
Merged

mikemadeja merged 4 commits into
mainfrom
develop

Conversation

@mikemadeja

Copy link
Copy Markdown
Owner

Summary

Test plan

  • Both source PRs passed CI (Pester integration suite + PSScriptAnalyzer) before merging to develop.

🤖 Generated with Claude Code

mikemadeja and others added 4 commits September 26, 2026 10:27
Get-PiHoleList: was fully functional already (heavily exercised all
session as a dependency of Add/Remove/Update-PiHoleList), just had the WIP
flag lingering and an incomplete docstring (missing -List param docs,
.DESCRIPTION, .EXAMPLE).

Get-PiHoleLogWebserver: wasn't exported at all, had the stray break bug,
and its formatted-output branch was a literal empty stub
(`#$ObjectFinal = @()`, did nothing). Also fixed a real bug found while
rewriting it: the nextID query parameter was sent as `nextId` (wrong
case) - confirmed against the live API spec, which names it `nextID`.
Rewrote the formatted output as {Log, NextID, Pid, File}, preserving the
NextID field so incremental polling (the endpoint's whole reason for
existing) actually works from PowerShell. Exported it.

Get-PiHoleTeleporterDownload: wasn't exported, had the stray break bug, a
copy-pasted wrong .SYNOPSIS ("Get info about logs for webserver"), and
assumed the downloaded backup was a .tar.gz - the live API spec documents
the response as application/zip, confirmed by actually downloading a file
and checking its magic bytes (50 4B 03 04, a real ZIP) and opening it with
System.IO.Compression.ZipFile. Removed the RawOutput parameter, since the
API always returns a binary archive rather than JSON - there's no
alternate raw representation for it to toggle to. Exported it.

Verified all three against a real Pi-hole v6 server. Added dedicated
integration test files for the latter two (Get-PiHoleList already had
one). README regenerated to drop the WIP flag and list the two newly
exported functions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds tools/Update-ExampleOutput.ps1, which runs every exported function
against a real Pi-hole server and writes docs/EXAMPLES.md - one section
per function with the exact invocation and the real captured output,
grouped the same way as README.md's Command Reference. State-changing
functions (groups, lists, sessions) use a throwaway resource that's
cleaned up immediately after capture. Functions with real side effects
on a live server (gravity rebuild, DNS restart, network/log flush, DNS
blocking toggle) are skipped by default in favor of a previously
captured static example, unless -IncludeDisruptive is passed.

Links docs/EXAMPLES.md from README.md's table of contents and Command
Reference section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…functions

fix: finish all 3 remaining in-construction functions
docs: add auto-generated real example output for every function
@mikemadeja
mikemadeja merged commit 072494b into main Sep 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant