# shellcheck shell=sh

xrc:mod:lib     ossinsight   cfg  api  util  collection/_index  trend/_index  stargazer/_index  issue/_index  pr/_index

___X_CMD_OSSINSIGHT_API_ENDPOINT="https://api.ossinsight.io/v1"

___x_cmd_ossinsight(){
    local op="$1"; shift
    case "$op" in
        -h|--help)      ___x_cmd help -m ossinsight "$@" ;;

        collection|trend|stargazer|issue|pr)
            ___x_cmd_ossinsight_"$op" "$@" ;;

        *)              M="Not found command - 'x ossinsight $op'" N=ossinsight log:ret:1
    esac
}