Skip to main content

resolve

Function resolve 

Source
pub async fn resolve(
    t: &Transport,
    selectors: &[String],
    tag: Option<&str>,
    local: &[Rule],
    noun: &str,
) -> Result<Option<Vec<String>>>
Expand description

Resolve selectors and an optional tag to rule_id values. Returns None when neither is given and the caller should act on every rule.

Check local before the stack. Pass an empty slice for rules export and state pull. Pass disk rules for local commands so scoped push can select locally added rules that the stack does not have.

noun completes command-specific refusal messages, such as “nothing to export”.