Skip to main content

build_cli_version

Function build_cli_version 

Source
pub fn build_cli_version(
    name: &str,
    display_name: Option<&str>,
    version: &str,
    build: Option<&str>,
) -> Event
Expand description

Build a standard CLI version event: a kind:"result" event whose payload is { "code": "version", "name": <name>, "version": <version> }, plus "display_name"/"build" when given. name is the short/bin identity (e.g. "afdata"); display_name is an optional human-facing product name (e.g. "Agent-First Data"); build is an opaque caller-supplied identifier (a git commit SHA, for example) — its meaning is entirely up to the caller. Both are None when unavailable, and simply absent from the payload.