Skip to main content

choose

Function choose 

Source
pub fn choose(
    options: &[Recommendation],
    manager: Option<Manager>,
    channel: Option<Channel>,
) -> Result<&Recommendation, RkError>
Expand description

Pick the one option add serves, from the flags and the target.

ยงErrors

Returns RkError::Usage where the manager is ambiguous or the pair is not viable, naming the choices.