@flowscripter/example-cli 3.0.4 → 3.0.6
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/bun.lock
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "@flowscripter/example-cli",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@flowscripter/dynamic-cli-framework": "^7.
|
|
9
|
-
"@flowscripter/dynamic-cli-framework-api": "^4.0
|
|
8
|
+
"@flowscripter/dynamic-cli-framework": "^7.1.1",
|
|
9
|
+
"@flowscripter/dynamic-cli-framework-api": "^4.2.0",
|
|
10
10
|
"@flowscripter/dynamic-plugin-framework": "2.2.14",
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
"packages": {
|
|
24
|
-
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@7.
|
|
24
|
+
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@7.1.1", "", { "dependencies": { "@flowscripter/dynamic-cli-framework-api": "^4.2.0", "@flowscripter/dynamic-plugin-framework": "^2.2.14", "emphasize": "^7.0.0", "fastest-levenshtein": "^1.0.16", "figlet": "^1.12.0", "highlight.js": "^11.12.0", "prettier": "^3.9.9", "semver": "^7.8.5", "supports-color": "^11.0.0", "supports-terminal-graphics": "^0.1.0" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-M5bA/FvvlV2PycTnWVsodAYu12ODH9B54Lau4Q6EOz0C3YhiUxcHo7dtnFU0IES6R4bquWgt71qznHa6/+cfdQ=="],
|
|
25
25
|
|
|
26
|
-
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@4.0
|
|
26
|
+
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@4.2.0", "", { "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-AfDYyIAhwKe7t3ep5fTjIACXnxp4w06AorCys1koIlZYrTv8Z34XkKCdl7LGmhqIBX+n1M2tSbCB8HIhQ7rmuQ=="],
|
|
27
27
|
|
|
28
28
|
"@flowscripter/dynamic-plugin-framework": ["@flowscripter/dynamic-plugin-framework@2.2.14", "", { "dependencies": { "semver": "^7.8.5" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-I91cuIMSzhZ/ZZzqtmYyX9sw6TVFGDxRa1PMFPJBJYcydov+kxIbrRUUU9RHSjVO38eBZ6eugklDu0lJnNDaAQ=="],
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/example-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Simple example CLI using https://github.com/flowscripter/dynamic-cli-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@flowscripter/dynamic-cli-framework": "^7.
|
|
28
|
-
"@flowscripter/dynamic-cli-framework-api": "^4.0
|
|
27
|
+
"@flowscripter/dynamic-cli-framework": "^7.1.1",
|
|
28
|
+
"@flowscripter/dynamic-cli-framework-api": "^4.2.0",
|
|
29
29
|
"@flowscripter/dynamic-plugin-framework": "2.2.14"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -5,7 +5,7 @@ import path from "node:path";
|
|
|
5
5
|
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
|
|
6
6
|
import packageJson from "../package.json";
|
|
7
7
|
|
|
8
|
-
// Functional test
|
|
8
|
+
// Functional test: the startup banner must print the
|
|
9
9
|
// upgrade-availability hint "(X.Y.Z available, run 'app upgrade')" on the SAME line as
|
|
10
10
|
// "version: X.Y.Z", sourced from the cached upgrade-check result.
|
|
11
11
|
//
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { describe, expect, test } from "bun:test";
|
|
3
3
|
|
|
4
|
-
// Functional test
|
|
5
|
-
//
|
|
6
|
-
//
|
|
4
|
+
// Functional test: the `version` command must not print the upgrade-availability hint - it
|
|
5
|
+
// should only ever print the plain version number. (The hint itself is printed in the startup
|
|
6
|
+
// banner - see tests/banner_upgrade_hint_test.ts.)
|
|
7
7
|
//
|
|
8
8
|
// This spawns example-cli's real executable entrypoint (`index.ts`, the same one the compiled
|
|
9
|
-
// binary runs) as a subprocess against the real installed @flowscripter/dynamic-cli-framework
|
|
9
|
+
// binary runs) as a subprocess against the real installed @flowscripter/dynamic-cli-framework,
|
|
10
10
|
// so the exact `version` command code path is exercised end to end. No mocking is needed here:
|
|
11
|
-
//
|
|
12
|
-
//
|
|
11
|
+
// VersionCommand.execute() prints `context.cliConfig.version` unconditionally and does not
|
|
12
|
+
// consult the upgrade service at all, so this holds regardless of whether an upgrade is
|
|
13
13
|
// actually available on the real network.
|
|
14
14
|
//
|
|
15
15
|
// The banner (printed via printerService.info()) writes to stderr; command results (`version`'s
|