pub fn resolve_retention_days(
cli_days: Option<u32>,
config: &BhtuneConfig,
) -> Option<u32>Expand description
Resolve the history retention policy (history-retention) with CLI flag > env var > config file > default precedence, matching resolve_bridge_host’s shape. The env var
is already folded into cli_days by clap’s env attribute on Cli::retention_days.
None means retain forever – there is no built-in default number of days; see
BhtuneConfig::retention_days for why.