# shellcheck shell=bash disable=SC2154,2034

___x_cmd_shodan_host_search_facet(){
    local X_help_cmd='x help -m shodan host search facet';   help:arg:parse
    shodan:arg:format:raw:json2app:all
    ___x_cmd_shodan_host_search_facet___"$format"
}

___x_cmd_shodan_host_search_facet___app(){
    local data;     data="$( ___x_cmd_shodan_host_search_facet___raw )"    || shodan:data:ret
    ___x_cmd_pipevar data       x j2y
}

___x_cmd_shodan_host_search_facet___json(){
    local data;     data="$( ___x_cmd_shodan_host_search_facet___raw )"    || shodan:data:ret
    ___x_cmd_pipevar data
}


___x_cmd_shodan_host_search_facet___raw(){
    ___x_cmd_shodan_ourl get /shodan/host/search/facets
}
