# shellcheck shell=dash
___x_cmd_apt___repo_ls(){
    ___x_cmd_cmds apt list -a
}

___x_cmd_apt___repo_lsname(){
    ___x_cmd_cmds apt-cache pkgnames | ___x_cmd_cmds sort
}

___x_cmd_apt___repo_browse(){
    [ $# -gt 0 ] || {
        ___x_cmd browse "https://packages.ubuntu.com/"
        return
    }

    ___x_cmd browse "https://packages.ubuntu.com/en/focal/${1%.*}"
}

___x_cmd_apt___repo_search(){
    ___x_cmd_cmds apt search "$1"
}
