@zrhsh/wukong-cli 0.4.18 → 0.4.19
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
|
@@ -2727,7 +2727,7 @@ async function runUpdateCommand({
|
|
|
2727
2727
|
}
|
|
2728
2728
|
var updateCommand = new Command4("update").description("Update wukong-cli to the latest npm version").action(async () => {
|
|
2729
2729
|
const exitCode = await runUpdateCommand({
|
|
2730
|
-
currentVersion: "0.4.
|
|
2730
|
+
currentVersion: "0.4.19",
|
|
2731
2731
|
versionProvider: new NpmVersionProvider(
|
|
2732
2732
|
"@zrhsh/wukong-cli",
|
|
2733
2733
|
"https://registry.npmjs.org"
|
|
@@ -2742,7 +2742,7 @@ var updateCommand = new Command4("update").description("Update wukong-cli to the
|
|
|
2742
2742
|
|
|
2743
2743
|
// src/cli.ts
|
|
2744
2744
|
var program = new Command5();
|
|
2745
|
-
program.name("wukong-cli").description("Wukong CLI - TypeScript implementation").version("0.4.
|
|
2745
|
+
program.name("wukong-cli").description("Wukong CLI - TypeScript implementation").version("0.4.19").option("--debug", "Enable debug mode (show HTTP requests)").hook("preAction", (thisCommand) => {
|
|
2746
2746
|
const options = thisCommand.opts();
|
|
2747
2747
|
if (options.debug === true) {
|
|
2748
2748
|
setDebugMode(true, true);
|
|
@@ -2760,7 +2760,7 @@ if (process.argv.length === 2) {
|
|
|
2760
2760
|
program.parse();
|
|
2761
2761
|
setImmediate(() => {
|
|
2762
2762
|
try {
|
|
2763
|
-
const versionChecker = getVersionChecker("0.4.
|
|
2763
|
+
const versionChecker = getVersionChecker("0.4.19");
|
|
2764
2764
|
const notifier = new ConsoleNotifier();
|
|
2765
2765
|
versionChecker.checkInBackground(notifier).catch(() => {
|
|
2766
2766
|
});
|