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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ante-erp-cli",
3
- "version": "1.11.60",
3
+ "version": "1.11.61",
4
4
  "description": "Comprehensive CLI tool for managing ANTE ERP self-hosted installations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -195,18 +195,23 @@ export async function sslEnable(options) {
195
195
 
196
196
  console.log();
197
197
 
198
- const { proceed } = await inquirer.prompt([
199
- {
200
- type: 'confirm',
201
- name: 'proceed',
202
- message: 'Do you want to renew or reconfigure SSL certificates?',
203
- default: false
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