Skip to main content

resolve_duration

Function resolve_duration 

Source
pub fn resolve_duration(
    flag: Option<Duration>,
    ctx_field: Option<Duration>,
    default: Duration,
) -> Duration
Expand description

Resolve a duration with the CLI precedence: flag > Ctx (config) > default. Pulled out so #9 (approval_horizon) and #10 (receipt_timeout) share one pinning path — and tests exercise the precedence once, not per command.