@flowscripter/example-cli 1.0.8 → 1.1.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/.github/workflows/release-bun-executable.yml +1 -0
- package/assets/logo.png +0 -0
- package/bun.lock +14 -11
- package/demo.svg +371 -1
- package/functional_tests/README.md +1 -1
- package/functional_tests/features/executable.feature +37 -1
- package/functional_tests/features/steps/executable.py +7 -2
- package/functional_tests/features/support/pexpect_wrapper.py +28 -8
- package/package.json +4 -4
- package/src/cli.ts +18 -14
- package/src/commands/{command2.ts → arg-parsing.ts} +5 -4
- package/src/commands/banners.ts +47 -0
- package/src/commands/completion.ts +39 -0
- package/src/commands/configuration.ts +74 -0
- package/src/commands/demo.ts +30 -0
- package/src/commands/image.ts +45 -0
- package/src/commands/interruption.ts +65 -0
- package/src/commands/printing.ts +213 -0
- package/src/commands/prompting.ts +121 -0
- package/tests/cli_test.ts +0 -1
- package/src/commands/command1.ts +0 -74
package/assets/logo.png
ADDED
|
Binary file
|
package/bun.lock
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"lockfileVersion": 1,
|
|
3
|
+
"configVersion": 0,
|
|
3
4
|
"workspaces": {
|
|
4
5
|
"": {
|
|
5
6
|
"name": "@flowscripter/example-cli",
|
|
6
7
|
"dependencies": {
|
|
7
|
-
"@flowscripter/dynamic-cli-framework": "^1.
|
|
8
|
+
"@flowscripter/dynamic-cli-framework": "^1.2.0",
|
|
8
9
|
},
|
|
9
10
|
"devDependencies": {
|
|
10
|
-
"@types/bun": "^1.
|
|
11
|
+
"@types/bun": "^1.3.14",
|
|
11
12
|
},
|
|
12
13
|
"peerDependencies": {
|
|
13
|
-
"typescript": "^
|
|
14
|
+
"typescript": "^6.0.3",
|
|
14
15
|
},
|
|
15
16
|
},
|
|
16
17
|
},
|
|
17
18
|
"packages": {
|
|
18
|
-
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@1.
|
|
19
|
+
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@1.2.0", "", { "dependencies": { "emphasize": "^7.0.0", "fastest-levenshtein": "^1.0.16", "figlet": "^1.11.0", "highlight.js": "^11.11.1", "prettier": "^3.8.3", "supports-color": "^10.2.2", "supports-terminal-graphics": "^0.1.0" }, "peerDependencies": { "typescript": "^6.0.3" } }, "sha512-hNmoxwGjsALEkBAqTPqp2WV9MA7DoaMymT3e0WcNWIkur19JxqxeMUkPp2xvtUfR79d3+qjWBBfzktarwfMRjA=="],
|
|
19
20
|
|
|
20
|
-
"@types/bun": ["@types/bun@1.
|
|
21
|
+
"@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="],
|
|
21
22
|
|
|
22
23
|
"@types/hast": ["@types/hast@3.0.4", "", { "dependencies": { "@types/unist": "*" } }, "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ=="],
|
|
23
24
|
|
|
@@ -25,10 +26,12 @@
|
|
|
25
26
|
|
|
26
27
|
"@types/unist": ["@types/unist@3.0.3", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
|
|
27
28
|
|
|
28
|
-
"bun-types": ["bun-types@1.
|
|
29
|
+
"bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="],
|
|
29
30
|
|
|
30
31
|
"chalk": ["chalk@5.4.1", "", {}, "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w=="],
|
|
31
32
|
|
|
33
|
+
"commander": ["commander@14.0.3", "", {}, "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="],
|
|
34
|
+
|
|
32
35
|
"dequal": ["dequal@2.0.3", "", {}, "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="],
|
|
33
36
|
|
|
34
37
|
"devlop": ["devlop@1.1.0", "", { "dependencies": { "dequal": "^2.0.0" } }, "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA=="],
|
|
@@ -37,19 +40,19 @@
|
|
|
37
40
|
|
|
38
41
|
"fastest-levenshtein": ["fastest-levenshtein@1.0.16", "", {}, "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg=="],
|
|
39
42
|
|
|
40
|
-
"figlet": ["figlet@1.
|
|
43
|
+
"figlet": ["figlet@1.11.0", "", { "dependencies": { "commander": "^14.0.0" }, "bin": { "figlet": "bin/index.js" } }, "sha512-EEx3OS/l2bFqcUNN2NM9FPJp8vAMrgbCxsbl2hbcJNNxOEwVe3mEzrhan7TbJQViZa8mMqhihlbCaqD+LyYKTQ=="],
|
|
41
44
|
|
|
42
45
|
"highlight.js": ["highlight.js@11.11.1", "", {}, "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w=="],
|
|
43
46
|
|
|
44
47
|
"lowlight": ["lowlight@3.1.0", "", { "dependencies": { "@types/hast": "^3.0.0", "devlop": "^1.0.0", "highlight.js": "~11.9.0" } }, "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ=="],
|
|
45
48
|
|
|
46
|
-
"prettier": ["prettier@3.
|
|
49
|
+
"prettier": ["prettier@3.8.3", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw=="],
|
|
47
50
|
|
|
48
|
-
"supports-color": ["supports-color@10.
|
|
51
|
+
"supports-color": ["supports-color@10.2.2", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="],
|
|
49
52
|
|
|
50
|
-
"
|
|
53
|
+
"supports-terminal-graphics": ["supports-terminal-graphics@0.1.0", "", {}, "sha512-+KdfozhS0Fw8y5Sghw8kkZNGT8nWYzJ1EzcoIvVjxhl+26TJTs26y02yfBgvc1jh5AS/c8jcI3xtahhR95KRyQ=="],
|
|
51
54
|
|
|
52
|
-
"typescript": ["typescript@
|
|
55
|
+
"typescript": ["typescript@6.0.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="],
|
|
53
56
|
|
|
54
57
|
"undici-types": ["undici-types@6.20.0", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
|
|
55
58
|
|