@junwu168/openshell 0.1.0 → 0.1.2
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.
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
"Bash(git:*)",
|
|
5
5
|
"Bash(bun test:*)",
|
|
6
6
|
"Bash(gh repo:*)",
|
|
7
|
-
"Bash(gh release:*)"
|
|
7
|
+
"Bash(gh release:*)",
|
|
8
|
+
"Bash(bun run:*)",
|
|
9
|
+
"Bash(npx tsc:*)",
|
|
10
|
+
"Bash(npm pack:*)",
|
|
11
|
+
"Bash(npm view:*)",
|
|
12
|
+
"Bash(tar -xzf junwu168-openshell-0.1.1.tgz)"
|
|
8
13
|
]
|
|
9
14
|
}
|
|
10
15
|
}
|
package/dist/cli/openshell.d.ts
CHANGED
package/dist/cli/openshell.js
CHANGED
|
@@ -327,7 +327,14 @@ const handleRemove = async (deps, idArg) => {
|
|
|
327
327
|
return 0;
|
|
328
328
|
};
|
|
329
329
|
export const runServerRegistryCli = async (argv, deps) => {
|
|
330
|
-
|
|
330
|
+
let activeDeps;
|
|
331
|
+
try {
|
|
332
|
+
activeDeps = deps ?? (await createDefaultDeps());
|
|
333
|
+
}
|
|
334
|
+
catch (err) {
|
|
335
|
+
console.error(`Failed to initialize: ${err instanceof Error ? err.message : err}`);
|
|
336
|
+
return 1;
|
|
337
|
+
}
|
|
331
338
|
try {
|
|
332
339
|
const [command, arg] = argv;
|
|
333
340
|
switch (command) {
|
package/package.json
CHANGED
package/src/cli/openshell.ts
CHANGED
|
@@ -446,7 +446,13 @@ const handleRemove = async (deps: CliDeps, idArg?: string) => {
|
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
export const runServerRegistryCli = async (argv: string[], deps?: CliDeps) => {
|
|
449
|
-
|
|
449
|
+
let activeDeps: CliDeps
|
|
450
|
+
try {
|
|
451
|
+
activeDeps = deps ?? (await createDefaultDeps())
|
|
452
|
+
} catch (err) {
|
|
453
|
+
console.error(`Failed to initialize: ${err instanceof Error ? err.message : err}`)
|
|
454
|
+
return 1
|
|
455
|
+
}
|
|
450
456
|
|
|
451
457
|
try {
|
|
452
458
|
const [command, arg] = argv
|