Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
Mads::EchoRenderOptions Struct Reference

Rendering choices for format_echo_json()/format_echo_blob(), mirroring mads echo's CLI flags. More...

#include <echo_format.hpp>

Public Attributes

bool raw = false
 
bool jsonl = false
 
bool color = true
 

Detailed Description

Rendering choices for format_echo_json()/format_echo_blob(), mirroring mads echo's CLI flags.

Definition at line 30 of file echo_format.hpp.

Member Data Documentation

◆ color

bool Mads::EchoRenderOptions::color = true

Emit rang ANSI color codes around the pretty-printed form. Ignored (never colored) when jsonl is set, since colored output would corrupt the JSON stream a consumer like jq expects.

Definition at line 40 of file echo_format.hpp.

◆ jsonl

bool Mads::EchoRenderOptions::jsonl = false

Emit a single compact JSON line (topic/timestamp/size/type/payload) instead of the multi-line pretty form. Intended for piping into jq.

Definition at line 36 of file echo_format.hpp.

◆ raw

bool Mads::EchoRenderOptions::raw = false

Show the exact blob bytes (base64-encoded) instead of a one-line "<blob N bytes>" summary. Applies to blob messages only.

Definition at line 33 of file echo_format.hpp.


The documentation for this struct was generated from the following file: