AddCaller2cli: A Decorator for Adding Caller Info to CLI Functions

View source: R/24_caller_cli.R

AddCaller2cliR Documentation

A Decorator for Adding Caller Info to CLI Functions

Description

Wraps CLI functions to automatically prepend the caller's identity (function name or 'global') to the output message.

Usage

AddCaller2cli(cli_func)

Arguments

cli_func

A CLI function (e.g., cli_alert_info).

Value

A wrapper function that formats output as "[caller]: message".


SigBridgeRUtils documentation built on Sept. 29, 2026, 5:09 p.m.