@flowscripter/example-cli 1.6.0 → 1.7.0
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 +3 -2
- package/functional_tests/features/upgrade.feature +6 -0
- package/package.json +3 -2
- package/src/cli.ts +27 -0
package/bun.lock
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "@flowscripter/example-cli",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@flowscripter/dynamic-cli-framework": "2.3.
|
|
8
|
+
"@flowscripter/dynamic-cli-framework": "2.3.3",
|
|
9
|
+
"@flowscripter/dynamic-cli-framework-api": "^1.2.0",
|
|
9
10
|
"@flowscripter/dynamic-plugin-framework": "1.11.1",
|
|
10
11
|
},
|
|
11
12
|
"devDependencies": {
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
},
|
|
21
22
|
},
|
|
22
23
|
"packages": {
|
|
23
|
-
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@2.3.
|
|
24
|
+
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@2.3.3", "", { "dependencies": { "@flowscripter/dynamic-cli-framework-api": "^1.2.0", "@flowscripter/dynamic-plugin-framework": "1.11.1", "emphasize": "^7.0.0", "fastest-levenshtein": "^1.0.16", "figlet": "^1.11.0", "highlight.js": "^11.11.1", "prettier": "^3.9.4", "semver": "^7.7.3", "supports-color": "^10.2.2", "supports-terminal-graphics": "^0.1.0" }, "peerDependencies": { "typescript": "^6.0.3" } }, "sha512-neY8YtiBHMU8IkBU1k5i1wECbDrDG4J1eyLbTi4RZwEIqzDl285/QLbXbEuNAnHiLZTphN/2YEDaEJxQ94mqnA=="],
|
|
24
25
|
|
|
25
26
|
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@1.2.0", "", { "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-ajR6PwQQwsQN96OH3OwO0SH5h3TGY3lLPM5lIYNUCpUXrOZ9MYJtsXvDcDKz8U/heWe0FBJeRY0nsNDJV4p9Vw=="],
|
|
26
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/example-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Simple example CLI using https://github.com/flowscripter/dynamic-cli-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@flowscripter/dynamic-cli-framework": "2.3.
|
|
27
|
+
"@flowscripter/dynamic-cli-framework": "2.3.3",
|
|
28
|
+
"@flowscripter/dynamic-cli-framework-api": "^1.2.0",
|
|
28
29
|
"@flowscripter/dynamic-plugin-framework": "1.11.1"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
package/src/cli.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
SyntaxHighlighterServiceProvider,
|
|
7
7
|
TreePrinterServiceProvider,
|
|
8
8
|
} from "@flowscripter/dynamic-cli-framework";
|
|
9
|
+
import { SupportedArch, SupportedOs } from "@flowscripter/dynamic-cli-framework-api";
|
|
9
10
|
import {
|
|
10
11
|
NpmPluginManager,
|
|
11
12
|
NpmPluginRepository,
|
|
@@ -50,6 +51,32 @@ export async function cli(): Promise<void> {
|
|
|
50
51
|
completionServiceEnabled: true,
|
|
51
52
|
imagePrinterServiceEnabled: true,
|
|
52
53
|
spawnServiceEnabled: true,
|
|
54
|
+
upgradeServiceEnabled: true,
|
|
55
|
+
upgradeLocationsConfig: {
|
|
56
|
+
supportedPlatforms: [
|
|
57
|
+
{ os: SupportedOs.LINUX, arch: SupportedArch.X64 },
|
|
58
|
+
{ os: SupportedOs.LINUX, arch: SupportedArch.ARM64 },
|
|
59
|
+
{ os: SupportedOs.MACOS, arch: SupportedArch.X64 },
|
|
60
|
+
{ os: SupportedOs.MACOS, arch: SupportedArch.ARM64 },
|
|
61
|
+
{ os: SupportedOs.WINDOWS, arch: SupportedArch.X64 },
|
|
62
|
+
],
|
|
63
|
+
githubRelease: {
|
|
64
|
+
owner: "flowscripter",
|
|
65
|
+
repo: "example-cli",
|
|
66
|
+
assetPattern: "example-cli_{os}_{arch}.zip",
|
|
67
|
+
},
|
|
68
|
+
linuxScript: {
|
|
69
|
+
scriptUrl:
|
|
70
|
+
"https://raw.githubusercontent.com/flowscripter/example-cli/main/script/install.sh",
|
|
71
|
+
},
|
|
72
|
+
homebrew: {
|
|
73
|
+
tap: "flowscripter/tap",
|
|
74
|
+
formula: "example-cli",
|
|
75
|
+
},
|
|
76
|
+
winget: {
|
|
77
|
+
packageId: "Flowscripter.example-cli",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
53
80
|
},
|
|
54
81
|
);
|
|
55
82
|
}
|