aixxai 1.5.7 → 1.5.8
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/README.md +4 -2
- package/bin/aixx.js +9 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/bin/aixx.js
CHANGED
|
@@ -81,6 +81,15 @@ async function main() {
|
|
|
81
81
|
const command = args[0];
|
|
82
82
|
const subArgs = args.slice(1);
|
|
83
83
|
|
|
84
|
+
// 裸命令即安装(1007 K哥令:命令越短越好)——npx aixxai 直接进安装,帮助走 help/--help
|
|
85
|
+
if (command === undefined) {
|
|
86
|
+
const installEntry = COMMANDS.find(c => c.name === 'install');
|
|
87
|
+
if (installEntry) {
|
|
88
|
+
await installEntry.run(subArgs);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
84
93
|
const entry = COMMANDS.find(c => c.name === command || c.aliases?.includes(command));
|
|
85
94
|
if (entry) {
|
|
86
95
|
await entry.run(subArgs);
|
|
@@ -96,7 +105,6 @@ async function main() {
|
|
|
96
105
|
case '--help':
|
|
97
106
|
case '-h':
|
|
98
107
|
case 'help':
|
|
99
|
-
case undefined:
|
|
100
108
|
showHelp(VERSION);
|
|
101
109
|
break;
|
|
102
110
|
default: {
|
package/package.json
CHANGED