@flowscripter/example-cli 1.0.1 → 1.0.3
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/README.md +2 -2
- package/bun.lock +2 -2
- package/package.json +19 -2
- package/src/cli.ts +1 -1
package/README.md
CHANGED
|
@@ -59,11 +59,11 @@ Run:
|
|
|
59
59
|
|
|
60
60
|
> During development this can be used to validate command definitions:
|
|
61
61
|
>
|
|
62
|
-
> `
|
|
62
|
+
> `DYNAMIC_CLI_FRAMEWORK_VALIDATE_ALL=1 bun run index.ts`
|
|
63
63
|
|
|
64
64
|
> During development this can be used to enable framework logging:
|
|
65
65
|
>
|
|
66
|
-
> `
|
|
66
|
+
> `DYNAMIC_CLI_FRAMEWORK_DEBUG=1 bun run index.ts`
|
|
67
67
|
|
|
68
68
|
Compile binary:
|
|
69
69
|
|
package/bun.lock
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"": {
|
|
5
5
|
"name": "@flowscripter/example-cli",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@flowscripter/dynamic-cli-framework": "^1.0.
|
|
7
|
+
"@flowscripter/dynamic-cli-framework": "^1.0.10",
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/bun": "^1.2.5",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
"packages": {
|
|
18
|
-
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@1.0.
|
|
18
|
+
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@1.0.10", "", { "dependencies": { "emphasize": "^7.0.0", "fastest-levenshtein": "^1.0.16", "figlet": "^1.8.0", "highlight.js": "^11.11.1", "supports-color": "^10.0.0", "ts-log": "^2.2.7" }, "peerDependencies": { "typescript": "^5.8.2" } }, "sha512-uNGT0I6HPCnfLeRyuVDbK7ha1khJs5GpNj0Yw+lAVQ7hKxPuB/i/1lSCctKHeGllcRrxj2dc+FoJ/SFKayQzCw=="],
|
|
19
19
|
|
|
20
20
|
"@types/bun": ["@types/bun@1.2.5", "", { "dependencies": { "bun-types": "1.2.5" } }, "sha512-w2OZTzrZTVtbnJew1pdFmgV99H0/L+Pvw+z1P67HaR18MHOzYnTYOi6qzErhK8HyT+DB782ADVPPE92Xu2/Opg=="],
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/example-cli",
|
|
3
|
+
"description": "Simple example CLI using https://github.com/flowscripter/dynamic-cli-framework",
|
|
4
|
+
"homepage": "https://github.com/flowscripter/example-cli#readme",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/flowscripter/example-cli.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"bun",
|
|
12
|
+
"example",
|
|
13
|
+
"plugin",
|
|
14
|
+
"framework",
|
|
15
|
+
"dynamic",
|
|
16
|
+
"import",
|
|
17
|
+
"executable",
|
|
18
|
+
"cli"
|
|
19
|
+
],
|
|
3
20
|
"module": "index.ts",
|
|
4
21
|
"type": "module",
|
|
5
|
-
"version": "1.0.
|
|
22
|
+
"version": "1.0.3",
|
|
6
23
|
"publishConfig": {
|
|
7
24
|
"access": "public"
|
|
8
25
|
},
|
|
@@ -13,6 +30,6 @@
|
|
|
13
30
|
"typescript": "^5.8.2"
|
|
14
31
|
},
|
|
15
32
|
"dependencies": {
|
|
16
|
-
"@flowscripter/dynamic-cli-framework": "^1.0.
|
|
33
|
+
"@flowscripter/dynamic-cli-framework": "^1.0.10"
|
|
17
34
|
}
|
|
18
35
|
}
|
package/src/cli.ts
CHANGED
|
@@ -16,7 +16,7 @@ export async function cli(): Promise<void> {
|
|
|
16
16
|
await launchMultiCommandCLI(
|
|
17
17
|
[command1, command2],
|
|
18
18
|
"Simple example CLI using dynamic-cli-framework.",
|
|
19
|
-
|
|
19
|
+
"example-cli", // alternatively, name can be derived from executable name if this is not defined
|
|
20
20
|
packageJson.version,
|
|
21
21
|
false, // simple example, so disable env vars support for configuration defaults
|
|
22
22
|
false, // simple example, so disable configuration support
|