Comparing version 2.4.34 to 2.4.35
{ | ||
"name": "netget", | ||
"version": "2.4.34", | ||
"version": "2.4.35", | ||
"description": "Rette Adepto/ Recibido Directamente.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -47,3 +47,3 @@ // netget_MainMenu.js | ||
...`); | ||
await NetGetX_CLI(x); // Proceed to the interactive menu if setup is verified | ||
await NetGetX_CLI(); // Proceed to the interactive menu if setup is verified | ||
} else { | ||
@@ -50,0 +50,0 @@ console.log(chalk.red('Setup verification failed. Please resolve any issues before proceeding.')); |
//i_DefaultNetGetX.js | ||
import chalk from 'chalk'; | ||
import { getDir } from '../../../scripts/setupConfig.js'; | ||
import { initializeState } from '../xState.js'; | ||
import loadOrCreateUserConfig from './loadOrCreateUserConfig.js'; | ||
@@ -81,6 +82,6 @@ import setNginxPaths from './setNginxPaths.js'; | ||
}; | ||
console.log(chalk.green('Setup verification successful.')); | ||
console.log(chalk.cyan.bold('Attaching Config Data to:')); | ||
initializeState(x); | ||
console.log(chalk.green('Setup Verification Successful.')); | ||
return x; | ||
}; | ||
@@ -8,4 +8,6 @@ // NetGetX.cli.js | ||
import nginxMenu from './NGINX/nginx_menu.cli.js'; | ||
import { getState, updateState } from './xState.js'; | ||
//import { showNGXBlocks, addNewNGXBlock, showNGXDiscoveryNode, addNewNGXDiscoveryNode, netGetXSettings, aboutNetGetX } from './netGetXOptions.js'; | ||
export default async function NetGetX_CLI(x) { | ||
export default async function NetGetX_CLI() { | ||
const x = getState(); | ||
const answers = await inquirer.prompt({ | ||
@@ -38,3 +40,3 @@ type: 'list', | ||
case 'NGINX Menu': | ||
await nginxMenu(x); | ||
await nginxMenu(); | ||
break; | ||
@@ -41,0 +43,0 @@ case 'Main Menu': |
@@ -7,5 +7,8 @@ // nginx_menu.cli.js | ||
import { checkNginxStatus } from './checkNginxStatus.js'; | ||
import nginxRestart from './nginxRestart.js'; | ||
import NetGetX_CLI from '../NetGetX.cli.js'; | ||
import { getState, updateState } from '../xState.js'; | ||
export default async function nginxMenu(x) { | ||
export default async function nginxMenu() { | ||
const x = getState(); | ||
console.log(chalk.green('NGINX Management Menu')); | ||
@@ -34,2 +37,4 @@ const answers = await inquirer.prompt({ | ||
case 'Restart NGINX': | ||
await nginxRestart(x); | ||
break; | ||
case 'Reload NGINX': | ||
@@ -36,0 +41,0 @@ case 'View NGINX Logs': |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
885917
59
1453
9