Skip to main content

generate_hints

Function generate_hints 

Source
pub fn generate_hints(
    ctx: &HintContext,
    data: &Value,
    total: Option<u64>,
) -> Vec<Hint>
Expand description

Generate concrete drill-down hints from a command’s JSON output.

total is the real count of items (may exceed the number of items in data when output was truncated by a limit). None means the command doesn’t produce a list with a total.

Returns at most [MAX_HINTS] Hints, each with a human-readable description and an executable hyalo command (cmd).