This commit is contained in:
2025-12-01 02:24:16 +08:00
parent 59fd7a6411
commit b1f54cf813
2 changed files with 4 additions and 21 deletions

View File

@@ -316,17 +316,6 @@ const packDeployCommand = new Command('pack-deploy')
.option('-i, --install ', 'install dependencies')
.action(async (id, opts) => {
let { force, key, install } = opts || {};
if (!key) {
const answers = await inquirer.prompt([
{
type: 'input',
name: 'key',
message: 'Enter your deploy to services fileKey:',
when: () => !key, // 当 username 为空时,提示用户输入
},
]);
key = answers.key || key;
}
const res = await deployLoadFn(id, key, force, install);
});