Commit Graph
7 Commits
Author SHA1 Message Date
Nicolas De Loof 27b9995270 test(docs): compile the sdk.md examples
The fenced Go blocks in docs/sdk.md become real code under
docs/examples/sdk, built by the ordinary module build: API drift now
breaks compilation. A unit test pins the markdown to the compiled
files byte-for-byte (first block = main.go from its package clause
down, second block = customService's body), so wording drift breaks
the test instead of silently rotting the docs.

Epic #14074, section G.

Signed-off-by: Nicolas De Loof <[email protected]>
2026-08-27 11:21:03 +02:00
Nicolas De Loof 7b63e4fa33 docs(sdk): document the EventProcessor API that actually exists
sdk.md advertised a 'progress' package (progress.NewTTYWriter,
NewPlainWriter, NewJSONWriter, NewQuietWriter) that does not exist in
the repository, and typed WithEventProcessor against it. Anyone
following the doc writes code that cannot compile — or recreates the
phantom package.

The section now points at the real surface: api.EventProcessor, the
silent-by-default behavior when no processor is configured, and the
CLI's actual renderers in cmd/display (Full, Plain, JSON, Quiet) with
their real signatures.

Part of #14074 (A: the code misdescribes its own structure).

Signed-off-by: Nicolas De Loof <[email protected]>
2026-08-27 10:57:44 +02:00
Adam Sven Johnson 63ae7eb0fa Replace tabbed indentation in sdk.md
Tabs and spaces were mixed in the example code which didn't indent cleanly in the github preview.

Signed-off-by: Adam Sven Johnson <[email protected]>
2026-01-14 07:56:25 +01:00
Nicolas De Loof cfcee45a89 fix SDK example
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-03 16:55:23 +01:00
Nicolas De Loof 2b4543935c next release will be major version v5.x
Signed-off-by: Nicolas De Loof <[email protected]>
2025-11-13 09:32:43 +01:00
aevesdocker f0dce1b977 sdk docs: patch
Signed-off-by: aevesdocker <[email protected]>
2025-11-12 16:24:24 +01:00
Nicolas De Loof 9de7e2a388 SDK docs
Signed-off-by: Nicolas De Loof <[email protected]>
2025-11-10 16:15:36 +01:00