acadex-cli 1.2.3 → 1.2.5
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/acadex +0 -4
- package/acadex.ps1 +0 -4
- package/bin/interactive-menu.js +10 -7
- package/package.json +1 -1
package/acadex
CHANGED
|
@@ -10,10 +10,6 @@ YELLOW='\033[1;33m'
|
|
|
10
10
|
BLUE='\033[0;34m'
|
|
11
11
|
NC='\033[0m' # No Color
|
|
12
12
|
|
|
13
|
-
# Project root directory
|
|
14
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
15
|
-
cd "$SCRIPT_DIR"
|
|
16
|
-
|
|
17
13
|
# Display help
|
|
18
14
|
show_help() {
|
|
19
15
|
echo -e "${BLUE}╔══════════════════════════════════════════════════════════╗${NC}"
|
package/acadex.ps1
CHANGED
|
@@ -13,10 +13,6 @@ param(
|
|
|
13
13
|
[string[]]$Arguments
|
|
14
14
|
)
|
|
15
15
|
|
|
16
|
-
# Project root directory
|
|
17
|
-
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
18
|
-
Set-Location $ScriptDir
|
|
19
|
-
|
|
20
16
|
# Display help
|
|
21
17
|
function Show-Help {
|
|
22
18
|
Write-Host "===========================================================" -ForegroundColor Cyan
|
package/bin/interactive-menu.js
CHANGED
|
@@ -27,7 +27,10 @@ const executeCommand = (command, platform) => {
|
|
|
27
27
|
args = [scriptPath, command];
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const child = spawn(shell, args, {
|
|
30
|
+
const child = spawn(shell, args, {
|
|
31
|
+
stdio: 'inherit',
|
|
32
|
+
cwd: process.cwd() // Run in user's current directory, not package directory
|
|
33
|
+
});
|
|
31
34
|
|
|
32
35
|
child.on('close', (code) => {
|
|
33
36
|
resolve(code);
|
|
@@ -41,16 +44,16 @@ const showMainMenu = async (platform) => {
|
|
|
41
44
|
{
|
|
42
45
|
type: 'list',
|
|
43
46
|
name: 'category',
|
|
44
|
-
message: '
|
|
47
|
+
message: '===========================================\n ACADEX - Interactive Menu (v1.1)\n===========================================\n\nSelect a category:',
|
|
45
48
|
choices: [
|
|
46
49
|
{ name: '[+] Setup & Installation', value: 'setup' },
|
|
47
50
|
{ name: '[>] Development', value: 'development' },
|
|
48
|
-
{ name: '[
|
|
51
|
+
{ name: '[*] Testing', value: 'testing' },
|
|
49
52
|
{ name: '[#] Database', value: 'database' },
|
|
50
|
-
{ name: '[
|
|
51
|
-
{ name: '[
|
|
53
|
+
{ name: '[~] Maintenance', value: 'maintenance' },
|
|
54
|
+
{ name: '[@] Code Quality', value: 'quality' },
|
|
52
55
|
{ name: '[=] Dependencies', value: 'dependencies' },
|
|
53
|
-
{ name: '[
|
|
56
|
+
{ name: '[!] Other Commands', value: 'other' },
|
|
54
57
|
new inquirer.Separator(),
|
|
55
58
|
{ name: '[X] Exit', value: 'exit' }
|
|
56
59
|
],
|
|
@@ -59,7 +62,7 @@ const showMainMenu = async (platform) => {
|
|
|
59
62
|
]);
|
|
60
63
|
|
|
61
64
|
if (category === 'exit') {
|
|
62
|
-
console.log('\
|
|
65
|
+
console.log('\nGoodbye!\n');
|
|
63
66
|
process.exit(0);
|
|
64
67
|
}
|
|
65
68
|
|