@echo off
REM ***************************************************************************
REM @Contact :   liuyuqi.gov@msn.cn
REM @Time    :   2024/04/26 16:02:11
REM @Version :   1.0
REM @License :   (C)Copyright 2019 liuyuqi.
REM @Desc    :   ���� search_domain.exe ��ѯ���������ű���ʾ�û�������Ӧ�IJ�����������
REM %1 - ext_name
REM %2 - characters replaced
REM %3 - new characters
REM ***************************************************************************


REM 1. ��ӡhelp
:help
echo 1. ��������
echo 2. ��������
set /p input=��ѡ��command:
if "%input%"=="1" goto make_domain
if "%input%"=="2" goto search_domain
goto help

REM 2. ��������
:make_domain
echo.
echo 1. ����˫ƴ
echo 2. Ӣ�ĵ���
set /p lang_tmp=��ѡ��lang:
if "%lang_tmp%"=="1" set lang=zh
if "%lang_tmp%"=="2" set lang=en

echo.
set /p keyword=������ؼ���keyword��������ŷָ�:

echo.
echo 1. prefix
echo 2. suffix
set /p position_tmp=��ѡ��position:
if "%position_tmp%"=="1" set position=prefix
if "%position_tmp%"=="2" set position=suffix

echo.
set /p domain=������������׺��������ŷָ�:

echo.
echo ����������...
search_domain.exe generate --lang %lang% --keyword %keyword% --position %position% --domain %domain%
echo finish...
pause
goto help

REM 3. ��������
:search_domain
echo.
echo ����������...
search_domain.exe search
echo finish...
pause