pub fn run_query(config: QueryConfig, filter: QueryFilter) -> Result<i32>Expand description
Run the query command, returning the desired exit code.
ยงExit codes
exit_codes::SUCCESS(0): at least one component matched the filterexit_codes::NO_MATCHES(1): no components matched the filter
The caller is responsible for calling std::process::exit() with the
returned code when it is non-zero.