@flowscripter/example-cli 1.8.15 → 2.0.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 +7 -7
- package/package.json +3 -3
- package/src/commands/printing.ts +13 -8
package/bun.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"lockfileVersion":
|
|
2
|
+
"lockfileVersion": 2,
|
|
3
3
|
"configVersion": 1,
|
|
4
4
|
"workspaces": {
|
|
5
5
|
"": {
|
|
6
6
|
"name": "@flowscripter/example-cli",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@flowscripter/dynamic-cli-framework": "
|
|
9
|
-
"@flowscripter/dynamic-cli-framework-api": "^
|
|
8
|
+
"@flowscripter/dynamic-cli-framework": "^6.0.0",
|
|
9
|
+
"@flowscripter/dynamic-cli-framework-api": "^3.0.0",
|
|
10
10
|
"@flowscripter/dynamic-plugin-framework": "2.2.8",
|
|
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@
|
|
24
|
+
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@6.0.0", "", { "dependencies": { "@flowscripter/dynamic-cli-framework-api": "^3.0.0", "@flowscripter/dynamic-plugin-framework": "^2.2.8", "emphasize": "^7.0.0", "fastest-levenshtein": "^1.0.16", "figlet": "^1.11.4", "highlight.js": "^11.12.0", "prettier": "^3.9.6", "semver": "^7.8.5", "supports-color": "^11.0.0", "supports-terminal-graphics": "^0.1.0" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-kaJs2XifprU6gHP+dVSLwvPRD7F5Y3BxnfZWVtRa3lxSzq8sVBxR/YJ5okrTMEncnaGkIFHScabwbSLFVAmJ0g=="],
|
|
25
25
|
|
|
26
|
-
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@
|
|
26
|
+
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@3.0.0", "", { "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-KFJaC9wLlZGYCw4c4doJ2IUukul55bPWHyRiGSHbrp/pEEHmPncdCmcovL3Hmd7Le+6iUm+YjvInrA0kwEBxgw=="],
|
|
27
27
|
|
|
28
28
|
"@flowscripter/dynamic-plugin-framework": ["@flowscripter/dynamic-plugin-framework@2.2.8", "", { "dependencies": { "semver": "^7.8.5" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-yhEoSPi/xPs6529tmGvapo78k7zWRdKMUnBsoG/ocrt8nfPefrAkIhb735VRXI0fhD9g5lUjgFUIsbLDkVj3GQ=="],
|
|
29
29
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
"@types/hast": ["@types/hast@3.0.5", "", { "dependencies": { "@types/unist": "*" } }, "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g=="],
|
|
109
109
|
|
|
110
|
-
"@types/node": ["@types/node@26.
|
|
110
|
+
"@types/node": ["@types/node@26.6.1", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-VqGJBMCtdhqkBUCcBLvywI0NJ+KLuVzgNnlBUNFOQjqVxzo2lxLUNg1DSey8+u2u6ktswSAxg+s68QLzWHNOuA=="],
|
|
111
111
|
|
|
112
112
|
"@types/unist": ["@types/unist@3.0.3", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
|
|
113
113
|
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
"oxlint": ["oxlint@1.82.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.82.0", "@oxlint/binding-android-arm64": "1.82.0", "@oxlint/binding-darwin-arm64": "1.82.0", "@oxlint/binding-darwin-x64": "1.82.0", "@oxlint/binding-freebsd-x64": "1.82.0", "@oxlint/binding-linux-arm-gnueabihf": "1.82.0", "@oxlint/binding-linux-arm-musleabihf": "1.82.0", "@oxlint/binding-linux-arm64-gnu": "1.82.0", "@oxlint/binding-linux-arm64-musl": "1.82.0", "@oxlint/binding-linux-ppc64-gnu": "1.82.0", "@oxlint/binding-linux-riscv64-gnu": "1.82.0", "@oxlint/binding-linux-riscv64-musl": "1.82.0", "@oxlint/binding-linux-s390x-gnu": "1.82.0", "@oxlint/binding-linux-x64-gnu": "1.82.0", "@oxlint/binding-linux-x64-musl": "1.82.0", "@oxlint/binding-openharmony-arm64": "1.82.0", "@oxlint/binding-win32-arm64-msvc": "1.82.0", "@oxlint/binding-win32-ia32-msvc": "1.82.0", "@oxlint/binding-win32-x64-msvc": "1.82.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2001", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-+iFM1BGw1ntYJt3QngbJmjbrGxPaKMUADOXOijpWGnYcBPq8YZnQftSS1C+pVcDYy9YxqDVJKQqQkTazTQMboQ=="],
|
|
177
177
|
|
|
178
|
-
"prettier": ["prettier@3.9.
|
|
178
|
+
"prettier": ["prettier@3.9.7", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-T3mF5P7HFzZVLDQuCUNtJj6WK1pcpLMweMNUVwGb01bLNkH9AkKxtZvmInw8K6bnn2O3d6/5RHl6zSHiBAD0Og=="],
|
|
179
179
|
|
|
180
180
|
"semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],
|
|
181
181
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/example-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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": "
|
|
28
|
-
"@flowscripter/dynamic-cli-framework-api": "^
|
|
27
|
+
"@flowscripter/dynamic-cli-framework": "^6.0.0",
|
|
28
|
+
"@flowscripter/dynamic-cli-framework-api": "^3.0.0",
|
|
29
29
|
"@flowscripter/dynamic-plugin-framework": "2.2.8"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/commands/printing.ts
CHANGED
|
@@ -68,7 +68,12 @@ const printing: SubCommand = {
|
|
|
68
68
|
|
|
69
69
|
await sleep(0.5);
|
|
70
70
|
|
|
71
|
-
const handle1 = await printerService.showProgressBar(
|
|
71
|
+
const handle1 = await printerService.showProgressBar({
|
|
72
|
+
message: "Waiting 3 seconds",
|
|
73
|
+
total: 3,
|
|
74
|
+
current: 0,
|
|
75
|
+
format: (value) => `${value}sec`,
|
|
76
|
+
});
|
|
72
77
|
await sleep(1);
|
|
73
78
|
printerService.updateProgressBar(handle1, 1);
|
|
74
79
|
await sleep(1);
|
|
@@ -91,13 +96,13 @@ const printing: SubCommand = {
|
|
|
91
96
|
|
|
92
97
|
await sleep(0.5);
|
|
93
98
|
|
|
94
|
-
const handle2 = await printerService.showProgressBar(
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
);
|
|
99
|
+
const handle2 = await printerService.showProgressBar({
|
|
100
|
+
message: "Waiting 3 seconds",
|
|
101
|
+
total: 3,
|
|
102
|
+
current: 0,
|
|
103
|
+
style: ProgressStyle.FILL,
|
|
104
|
+
format: (value) => `${value}sec`,
|
|
105
|
+
});
|
|
101
106
|
await sleep(1);
|
|
102
107
|
printerService.updateProgressBar(handle2, 1);
|
|
103
108
|
await sleep(1);
|