@flowscripter/example-cli 3.0.4 → 3.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowscripter/example-cli",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "Simple example CLI using https://github.com/flowscripter/dynamic-cli-framework",
5
5
  "keywords": [
6
6
  "bun",
@@ -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 for dynamic-cli-framework#141/#213: the startup banner must print the
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 for dynamic-cli-framework#142: the `version` command must no longer print the
5
- // upgrade-availability hint - it should only ever print the plain version number. (The hint
6
- // itself remains in the startup banner - see tests/banner_upgrade_hint_test.ts for #141.)
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@5.0.6,
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
- // post-fix, VersionCommand.execute() prints `context.cliConfig.version` unconditionally and no
12
- // longer consults the upgrade service at all, so this holds regardless of whether an upgrade is
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