Skip to content

Improve help menus#339

Merged
0pcom merged 10 commits intoskycoin:developfrom
0pcom:add-endpoint-examples
Feb 23, 2026
Merged

Improve help menus#339
0pcom merged 10 commits intoskycoin:developfrom
0pcom:add-endpoint-examples

Conversation

@0pcom
Copy link
Collaborator

@0pcom 0pcom commented Feb 22, 2026

dmsg-discovery: Added endpoint list and example JSON responses
dmsg-server: Added endpoint documentation

dmsg-discovery: Added endpoint list and example JSON responses
dmsg-server: Added endpoint documentation

JSON examples are colorized using tidwall/pretty.
@0pcom 0pcom force-pushed the add-endpoint-examples branch from dcf80b2 to 11a73a2 Compare February 22, 2026 18:28
The ANSI reset codes (\033[0m) and newlines (\n\r) in flag descriptions
were causing issues with Cobra help menu rendering, disrupting color
output and formatting. These codes have been removed from all flag
descriptions across the codebase.
Updates skywire to include color functions in the custom help template
for usage=false mode, enabling colored output in dmsg CLI help.
Includes examples for:
- GET /health
- GET /dmsg-discovery/entry/{pk} (client and server entries)
- POST /dmsg-discovery/entry/ (new and update responses)
- DEL /dmsg-discovery/entry
- GET /dmsg-discovery/entries
- GET /dmsg-discovery/visorEntries
- GET /dmsg-discovery/available_servers
- GET /dmsg-discovery/all_servers
- GET /dmsg-discovery/servers/clients
- GET /dmsg-discovery/server/{pk}/clients
@0pcom 0pcom merged commit f86aa32 into skycoin:develop Feb 23, 2026
3 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