@zrhsh/wukong-cli 0.4.10 → 0.4.11
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/dist/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2387,7 +2387,7 @@ async function runUpdateCommand({
|
|
|
2387
2387
|
}
|
|
2388
2388
|
var updateCommand = new Command4("update").description("Update wukong-cli to the latest npm version").action(async () => {
|
|
2389
2389
|
const exitCode = await runUpdateCommand({
|
|
2390
|
-
currentVersion: "0.4.
|
|
2390
|
+
currentVersion: "0.4.11",
|
|
2391
2391
|
versionProvider: new NpmVersionProvider(
|
|
2392
2392
|
"@zrhsh/wukong-cli",
|
|
2393
2393
|
"https://registry.npmjs.org"
|
|
@@ -2402,7 +2402,7 @@ var updateCommand = new Command4("update").description("Update wukong-cli to the
|
|
|
2402
2402
|
|
|
2403
2403
|
// src/cli.ts
|
|
2404
2404
|
var program = new Command5();
|
|
2405
|
-
program.name("wukong-cli").description("Wukong CLI - TypeScript implementation").version("0.4.
|
|
2405
|
+
program.name("wukong-cli").description("Wukong CLI - TypeScript implementation").version("0.4.11").option("--debug", "Enable debug mode (show HTTP requests)").hook("preAction", (thisCommand) => {
|
|
2406
2406
|
const options = thisCommand.opts();
|
|
2407
2407
|
if (options.debug === true) {
|
|
2408
2408
|
setDebugMode(true, true);
|
|
@@ -2420,7 +2420,7 @@ if (process.argv.length === 2) {
|
|
|
2420
2420
|
program.parse();
|
|
2421
2421
|
setImmediate(() => {
|
|
2422
2422
|
try {
|
|
2423
|
-
const versionChecker = getVersionChecker("0.4.
|
|
2423
|
+
const versionChecker = getVersionChecker("0.4.11");
|
|
2424
2424
|
const notifier = new ConsoleNotifier();
|
|
2425
2425
|
versionChecker.checkInBackground(notifier).catch(() => {
|
|
2426
2426
|
});
|