From d02d43f43cbf216b12d8c96980e7325e496bb26d Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 11 Sep 2021 09:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=AF=BB=E5=85=A5=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E8=A1=8C=E5=8F=82=E6=95=B0=E6=97=B6=EF=BC=8C=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=BB=98=E8=AE=A4=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/deploy.js b/deploy.js index 7f3c42e..5bda925 100644 --- a/deploy.js +++ b/deploy.js @@ -54,24 +54,24 @@ try { // 读取命令行参数 commander .version('1.0', '-v, --version') // 默认是 -V。如果要 -v,就要加 '-v --version' - .option('-f, --fromPath ', `local distribution path to copy from. Default to ${wo.envi.deploy.fromPath}`) - .option('-g, --gotoTarget ', `connection section in config. Default to ${wo.envi.deploy.gotoTarget}`) + .option('-f, --fromPath ', `local distribution path to copy from.`) + .option('-g, --gotoTarget ', `connection section in config.`) - .option('-t, --targetType ', `target type, git or ssh. Default to ${wo.envi.deploy.connection.targetType}`) + .option('-t, --targetType ', `target type, git or ssh.`) - .option('-H, --host ', `Host IP or domain name of the target server. Default to ${wo.envi.deploy.connection.host}`) - .option('-P, --port ', `Ssh port number of the target server. Default to ${wo.envi.deploy.connection.port}`) - .option('-b, --targetPath ', `Destination path to deploy on the target. Default to ${wo.envi.deploy.connection.targetPath}`) - .option('-d, --targetDir ', `Destination folder to deploy on the target. Default to ${wo.envi.deploy.connection.targetDir}`) + .option('-H, --host ', `Host IP or domain name of the target server.`) + .option('-P, --port ', `Ssh port number of the target server.`) + .option('-b, --targetPath ', `Destination path to deploy on the target.`) + .option('-d, --targetDir ', `Destination folder to deploy on the target.`) - .option('-r, --repo ', `git repo address. Default to ${wo.envi.deploy.connection.repo}`) - .option('-b, --branch ', `git repo branch. Default to ${wo.envi.deploy.connection.branch}`) - .option('-n, --gitname ', `git user name. Default to ${wo.envi.deploy.connection.gitname}`) - .option('-m, --gitemail ', `git user email. Default to ${wo.envi.deploy.connection.gitemail}`) + .option('-r, --repo ', `git repo address.`) + .option('-b, --branch ', `git repo branch.`) + .option('-n, --gitname ', `git user name.`) + .option('-m, --gitemail ', `git user email.`) - .option('-u, --user ', `User id to login the target server. Default to ${wo.envi.deploy.connection.user}`) - .option('-k, --key ', `User private key file to login the target server. Default to ${wo.envi.deploy.connection.key}`) - .option('-p, --password ', `User password to login the target server. You may have to enclose it in "". Default to "${wo.envi.deploy.connection.password}"`) + .option('-u, --user ', `User id to login the target server.`) + .option('-k, --key ', `User private key file to login the target server.`) + .option('-p, --password ', `User password to login the target server. You may have to enclose it in "".`) .parse(process.argv) wo.envi.deploy.fromPath = commander.fromPath || wo.envi.deploy.fromPath