Refactor: tools: Remove some nesting in cli_resource_search()
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>