update
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user