Skip to content

Logging

log

Colored CLI output helpers for agentic-ci.

section(msg)

Print a section header: ▶ msg

Source code in src/agentic_ci/log.py
def section(msg: str) -> None:
    """Print a section header: ▶ msg"""
    if _use_color():
        print(f"\033[1;36m▶ {msg}\033[0m", flush=True)
    else:
        print(f"▶ {msg}", flush=True)

detail(label, value)

Print an indented detail line: ' label: value'.

Source code in src/agentic_ci/log.py
def detail(label: str, value: str) -> None:
    """Print an indented detail line: '  label: value'."""
    print(f"  {label}: {value}", flush=True)

info(msg)

Print an indented info line.

Source code in src/agentic_ci/log.py
def info(msg: str) -> None:
    """Print an indented info line."""
    print(f"  {msg}", flush=True)