ante-erp-cli 1.11.60 → 1.11.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/ssl-enable.js +16 -11
package/package.json
CHANGED
|
@@ -195,18 +195,23 @@ export async function sslEnable(options) {
|
|
|
195
195
|
|
|
196
196
|
console.log();
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
198
|
+
// In non-interactive mode, automatically proceed with renewal/reconfiguration
|
|
199
|
+
if (options.interactive !== false) {
|
|
200
|
+
const { proceed } = await inquirer.prompt([
|
|
201
|
+
{
|
|
202
|
+
type: 'confirm',
|
|
203
|
+
name: 'proceed',
|
|
204
|
+
message: 'Do you want to renew or reconfigure SSL certificates?',
|
|
205
|
+
default: false
|
|
206
|
+
}
|
|
207
|
+
]);
|
|
208
|
+
|
|
209
|
+
if (!proceed) {
|
|
210
|
+
console.log(chalk.gray('\nSSL configuration cancelled.\n'));
|
|
211
|
+
return;
|
|
204
212
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
if (!proceed) {
|
|
208
|
-
console.log(chalk.gray('\nSSL configuration cancelled.\n'));
|
|
209
|
-
return;
|
|
213
|
+
} else {
|
|
214
|
+
console.log(chalk.gray('Non-interactive mode: Proceeding with SSL reconfiguration...\n'));
|
|
210
215
|
}
|
|
211
216
|
}
|
|
212
217
|
|