cli-def 0.1.0__py3-none-any.whl
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.
- cli_def/__init__.py +16 -0
- cli_def/backend/__init__.py +2 -0
- cli_def/backend/argparse/__init__.py +10 -0
- cli_def/backend/argparse/argparse_builder.py +238 -0
- cli_def/backend/click/__init__.py +13 -0
- cli_def/backend/click/click_binder.py +46 -0
- cli_def/backend/click/click_builder.py +182 -0
- cli_def/backend/protocols.py +22 -0
- cli_def/demo/__init__.py +2 -0
- cli_def/demo/handlers.py +125 -0
- cli_def/demo/profiles/advanced.toml +39 -0
- cli_def/demo/profiles/beginner.toml +21 -0
- cli_def/models/__init__.py +17 -0
- cli_def/models/abstract_node.py +87 -0
- cli_def/models/argument_def.py +84 -0
- cli_def/models/cli_def.py +28 -0
- cli_def/models/command_def.py +49 -0
- cli_def/models/mult_def.py +81 -0
- cli_def/models/schema/cli_schema.py +24 -0
- cli_def/ops/__init__.py +16 -0
- cli_def/ops/dumper.py +216 -0
- cli_def/ops/loader.py +56 -0
- cli_def/ops/utils/__init__.py +3 -0
- cli_def/ops/utils/pretty_renderer.py +543 -0
- cli_def/ops/utils/renderer.py +199 -0
- cli_def/ops/utils/renderer_ops.py +169 -0
- cli_def/parsers/__init__.py +10 -0
- cli_def/parsers/parser.py +101 -0
- cli_def/resources/cli_def.toml +126 -0
- cli_def/runtime/__init__.py +22 -0
- cli_def/runtime/_internal/__init__.py +2 -0
- cli_def/runtime/_internal/scan_runner.py +28 -0
- cli_def/runtime/context.py +12 -0
- cli_def/runtime/dispatcher.py +197 -0
- cli_def/runtime/event.py +35 -0
- cli_def/runtime/handler_support.py +75 -0
- cli_def/runtime/result.py +117 -0
- cli_def/runtime/runner.py +178 -0
- cli_def/runtime/scanner.py +143 -0
- cli_def/runtime/session.py +286 -0
- cli_def/runtime/utils.py +54 -0
- cli_def/script/__init__.py +2 -0
- cli_def/script/common.py +29 -0
- cli_def/script/handlers/__init__.py +14 -0
- cli_def/script/handlers/dummy.py +43 -0
- cli_def/script/handlers/dummy2.py +22 -0
- cli_def/script/handlers/dump.py +50 -0
- cli_def/script/handlers/repl.py +70 -0
- cli_def/script/handlers/run.py +70 -0
- cli_def/script/handlers/scan.py +179 -0
- cli_def/script/handlers/search.py +116 -0
- cli_def/script/main.py +32 -0
- cli_def-0.1.0.dist-info/METADATA +400 -0
- cli_def-0.1.0.dist-info/RECORD +58 -0
- cli_def-0.1.0.dist-info/WHEEL +5 -0
- cli_def-0.1.0.dist-info/entry_points.txt +2 -0
- cli_def-0.1.0.dist-info/licenses/LICENSE +21 -0
- cli_def-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cli-def
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A declarative DSL for composable CLI applications with runtime and REPL
|
|
5
|
+
Author: Tomesoft
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 Tomesoft
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to do so, subject to the
|
|
15
|
+
following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
Project-URL: Homepage, https://cli-def.tomesoft.net
|
|
28
|
+
Project-URL: Repository, https://github.com/tomesoft/cli-def
|
|
29
|
+
Classifier: Programming Language :: Python :: 3
|
|
30
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Operating System :: OS Independent
|
|
33
|
+
Requires-Python: >=3.10
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: wcwidth
|
|
37
|
+
Provides-Extra: click
|
|
38
|
+
Requires-Dist: click>=8.0; extra == "click"
|
|
39
|
+
Provides-Extra: repl
|
|
40
|
+
Requires-Dist: prompt_toolkit; extra == "repl"
|
|
41
|
+
Provides-Extra: dev
|
|
42
|
+
Requires-Dist: pytest; extra == "dev"
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
# cli-def
|
|
46
|
+
|
|
47
|
+
A declarative DSL for defining CLI structures with a unified runtime and REPL for `argparse`/`click` backends.
|
|
48
|
+
|
|
49
|
+
project page:
|
|
50
|
+
<https://cli-def.tomesoft.net>
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## โจ Features
|
|
55
|
+
|
|
56
|
+
- Define CLI structure declaratively (TOML / Python models)
|
|
57
|
+
- Generate CLI implementations for:
|
|
58
|
+
- `argparse` (standard library, no dependencies)
|
|
59
|
+
- `click` (optional dependency)
|
|
60
|
+
- Separation of:
|
|
61
|
+
- CLI definition (DSL)
|
|
62
|
+
- Runtime implementation (builders)
|
|
63
|
+
- Built-in runtime system:
|
|
64
|
+
- Event model (`CliEvent`)
|
|
65
|
+
- Runner
|
|
66
|
+
- Dispatcher
|
|
67
|
+
- Entrypoint resolution (`module:function`)
|
|
68
|
+
- Result propagation
|
|
69
|
+
- Interactive REPL support
|
|
70
|
+
- including safety eval mode
|
|
71
|
+
- CLI chaining (execute one CLI from another)
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## ๐ฆ Installation
|
|
76
|
+
|
|
77
|
+
### Core (argparse only)
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pip install cli-def
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### With click support
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip install cli-def[click]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## ๐ Quick Start (Demo)
|
|
92
|
+
|
|
93
|
+
Try the interactive demo:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
cli-def demo beginner
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`beginner` profile reads in [beginner.toml](./src/cli_def/demo/profiles/beginner.toml)
|
|
100
|
+
|
|
101
|
+
```text
|
|
102
|
+
Type 'help' to list commands, 'exit' to exit
|
|
103
|
+
demo[beginner]> echo a b c d
|
|
104
|
+
a b c d
|
|
105
|
+
|
|
106
|
+
-> out[0]
|
|
107
|
+
demo[beginner]> greet John --upper
|
|
108
|
+
HELLO, JOHN!
|
|
109
|
+
|
|
110
|
+
-> out[1]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Advanced demo:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
cli-def demo advanced
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`advanced` profile reads in [advanced.toml](./src/cli_def/demo/profiles/advanced.toml)
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## ๐ฅ Interactive Mode (REPL)
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
cli-def repl --file your_cli.toml
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
```text
|
|
130
|
+
yourcli> help
|
|
131
|
+
yourcli> command arg1 --option value
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### safety eval mode
|
|
135
|
+
|
|
136
|
+
for explanation, run builtin `repl` command
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
cli-def repl
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
then for example, run `scan` command in REPL;
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
cli-def> scan cli_def.script.handlers.dummy2
|
|
146
|
+
package_name: cli_def.script.handlers.dummy2
|
|
147
|
+
# defpath entrypoint desc
|
|
148
|
+
----------------------------------------------------------------------------
|
|
149
|
+
1 /cli-def/testA cli_def.script.handlers.dummy2:dummyA late binding testA
|
|
150
|
+
2 /cli-def/testB cli_def.script.handlers.dummy2:dummyB late binding testB
|
|
151
|
+
3 /cli-def/testC cli_def.script.handlers.dummy2:dummyC late binding testC
|
|
152
|
+
----------------------------------------------------------------------------
|
|
153
|
+
|
|
154
|
+
-> out[0]
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
The las message `-> out[0]` means the result has stored as `out[0]` (like Jupyter).
|
|
158
|
+
Then just enter `>` to enter `safety eval mode`;
|
|
159
|
+
|
|
160
|
+
```text
|
|
161
|
+
cli-def> >
|
|
162
|
+
cli-def>eval>> len(_)
|
|
163
|
+
3
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The prompt `eval>>` is stacked, so you can see in `safety eval mode`.
|
|
167
|
+
In eval mode, input string is evaluated as a formula of python syntax, `_` is an alias to the last result (identical to `out[0]` here);
|
|
168
|
+
|
|
169
|
+
```text
|
|
170
|
+
cli-def>eval>> [k for k in _]
|
|
171
|
+
['/cli-def/testA', '/cli-def/testB', '/cli-def/testC']
|
|
172
|
+
cli-def>eval>> _["/cli-def/testA"]
|
|
173
|
+
[{'description': 'late binding testA',
|
|
174
|
+
'entrypoint': 'cli_def.script.handlers2:dummyA',
|
|
175
|
+
'late_binding': True,
|
|
176
|
+
'module': 'cli_def.script.handlers2',
|
|
177
|
+
'name': 'dummyA',
|
|
178
|
+
'path': '/cli-def/testA',
|
|
179
|
+
'tags': []}]
|
|
180
|
+
cli-def>eval>>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
And just return to end `safety eval mode` then back to REPL;
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
cli-def>
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## ๐ Run Another CLI (CLI chaining)
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
cli-def run example.toml -- command arg1 arg2
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
- `--` separates cli-def arguments from the target CLI arguments
|
|
198
|
+
- Remaining arguments are forwarded to the next CLI
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## ๐งฉ Entrypoint
|
|
203
|
+
|
|
204
|
+
```toml
|
|
205
|
+
[cli.run]
|
|
206
|
+
entrypoint = "myapp.handlers:run"
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Resolved as:
|
|
210
|
+
|
|
211
|
+
```text
|
|
212
|
+
module:function
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## ๐ Quick Example
|
|
218
|
+
|
|
219
|
+
### Define CLI (TOML)
|
|
220
|
+
|
|
221
|
+
```toml
|
|
222
|
+
# cli_def.toml
|
|
223
|
+
[cli] # is fixed root entry
|
|
224
|
+
key = "MyCLI"
|
|
225
|
+
help = "HELP of my CLI"
|
|
226
|
+
|
|
227
|
+
[cli.hello] # defines "hello" command
|
|
228
|
+
args = [
|
|
229
|
+
{key="name", mult="1", type="str"},
|
|
230
|
+
{key="to_upper", option="--upper", is_flat=true, default=false},
|
|
231
|
+
]
|
|
232
|
+
# one implementation option, CliRunner dispatches "hello" command to the specific entrypoint if it is specified like below.
|
|
233
|
+
# entrypoint = "myapp.handlers:hello"
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
### Usecase #1 : Build CLI and Run it
|
|
239
|
+
|
|
240
|
+
The first usecase is processing entire CLI pipe line. You can easily add CLI functionaly to your apps.
|
|
241
|
+
|
|
242
|
+
``` python
|
|
243
|
+
from cli_def import CliDefParser
|
|
244
|
+
from cli_def.runtime import CliRunner, CliEvent
|
|
245
|
+
|
|
246
|
+
def main():
|
|
247
|
+
parser = CliDefParser()
|
|
248
|
+
cli_def = parser.parse_from_toml("cli_def.toml")
|
|
249
|
+
|
|
250
|
+
runner = CliRunner(cli_def, fallback_handler=my_command_handler)
|
|
251
|
+
result = runner.run()
|
|
252
|
+
|
|
253
|
+
return result.exit_code
|
|
254
|
+
|
|
255
|
+
# one implementation option, handling commands in fallback handler
|
|
256
|
+
def my_command_handler(event: CliEvent):
|
|
257
|
+
if event.command.defpath == "/MyCLI/hello":
|
|
258
|
+
name = event.params.get("name")
|
|
259
|
+
text = f"Hello {name}"
|
|
260
|
+
if event.params.get("to_upper"):
|
|
261
|
+
text = text.upper()
|
|
262
|
+
print(text)
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Usecase #2 : Build CLI and go REPL
|
|
266
|
+
|
|
267
|
+
The second usecase is REPL mode.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
``` python
|
|
271
|
+
from cli_def import CliDefParser
|
|
272
|
+
from cli_def.runtime import CliSession, CliEvent, cli_def_handler
|
|
273
|
+
|
|
274
|
+
def main():
|
|
275
|
+
parser = CliDefParser()
|
|
276
|
+
cli_def = parser.parse_from_toml("cli_def.toml")
|
|
277
|
+
|
|
278
|
+
session = CliSession(cli_def)
|
|
279
|
+
session.repl(prompt="MyCLI> ")
|
|
280
|
+
|
|
281
|
+
# you can access to the stored result of the session
|
|
282
|
+
# result = session.result_store.all_data()
|
|
283
|
+
|
|
284
|
+
return 0
|
|
285
|
+
|
|
286
|
+
# another implementation option, handling specific command with early binding function that is marked decorator `cli_def_handler`
|
|
287
|
+
@cli_def_handler("/MyCLI/hello")
|
|
288
|
+
def do_hello(event: CliEvent):
|
|
289
|
+
name = event.params.get("name")
|
|
290
|
+
text = f"Hello {name}"
|
|
291
|
+
if event.params.get("to_upper"):
|
|
292
|
+
text = text.upper()
|
|
293
|
+
print(text)
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Usecase #3 : Build argparse.ArgumentParser
|
|
297
|
+
|
|
298
|
+
The third usecase is building argparse.ArgumentBuilder from CLI definition TOML instead of handwriting it. And you can easily join your existing code.
|
|
299
|
+
|
|
300
|
+
```python
|
|
301
|
+
from cli_def import CliDefParser
|
|
302
|
+
from cli_def.backend.argparse import ArgparseBuilder
|
|
303
|
+
|
|
304
|
+
parser = CliDefParser()
|
|
305
|
+
cli_def = parser.parse_from_toml("cli_def.toml")
|
|
306
|
+
|
|
307
|
+
builder = ArgparseBuilder()
|
|
308
|
+
argparser = builder.build(cli_def)
|
|
309
|
+
|
|
310
|
+
# if you'd like to tune the argparser, you can access to specific part using defpath
|
|
311
|
+
# part: ArgumentParser = builder.mapping["/MyCLI/hello"]
|
|
312
|
+
# part.allow_abbrev = False
|
|
313
|
+
|
|
314
|
+
args = argparser.parse_args()
|
|
315
|
+
if args.command == "hello":
|
|
316
|
+
text = f"Hello {args.name}"
|
|
317
|
+
if args.to_upper:
|
|
318
|
+
text = text.upper()
|
|
319
|
+
print(text)
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## ๐ง Concept
|
|
325
|
+
|
|
326
|
+
```text
|
|
327
|
+
TOML / Model
|
|
328
|
+
โ
|
|
329
|
+
CliDef (AST)
|
|
330
|
+
โ
|
|
331
|
+
Builder (argparse / click)
|
|
332
|
+
โ
|
|
333
|
+
Runtime (CliEvent / Dispatcher)
|
|
334
|
+
โ
|
|
335
|
+
Executable CLI / REPL
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## ๐ Architecture
|
|
341
|
+
|
|
342
|
+
```text
|
|
343
|
+
cli_def/
|
|
344
|
+
backend/
|
|
345
|
+
argparse/
|
|
346
|
+
click/
|
|
347
|
+
models/
|
|
348
|
+
ops/
|
|
349
|
+
parsers/
|
|
350
|
+
runtime/
|
|
351
|
+
script/
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## ๐ Optional Dependencies
|
|
357
|
+
|
|
358
|
+
```bash
|
|
359
|
+
pip install cli-def[click]
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
for developers;
|
|
363
|
+
|
|
364
|
+
```bash
|
|
365
|
+
pip install -e ".[dev]"
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
## ๐งช Testing
|
|
371
|
+
|
|
372
|
+
```bash
|
|
373
|
+
pytest
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
```bash
|
|
377
|
+
pytest -m "not click"
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
```bash
|
|
381
|
+
pytest -m click
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
---
|
|
385
|
+
|
|
386
|
+
## ๐ Roadmap
|
|
387
|
+
|
|
388
|
+
- See [TODO.md](./TODO.md)
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
## ๐ค Contributing
|
|
393
|
+
|
|
394
|
+
Contributions are welcome!
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## ๐ License
|
|
399
|
+
|
|
400
|
+
MIT License
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
cli_def/__init__.py,sha256=_d_9xc_58JYeZs9kIEHlznq67bSaqGQkciYWr1Yz1iE,224
|
|
2
|
+
cli_def/backend/__init__.py,sha256=e_VL8TVEHjVeR60VXCyAizBQwLWZYoELRugyIe57xhY,43
|
|
3
|
+
cli_def/backend/protocols.py,sha256=VWLG8qDZM-pZkBNqTYaaBNRGdkWzr7iDfIo-mIWXEl8,381
|
|
4
|
+
cli_def/backend/argparse/__init__.py,sha256=eVxUo28Qn7mFj6VF9Mf8Uzd7wYd2lfvcTyNBCJ_7mZg,145
|
|
5
|
+
cli_def/backend/argparse/argparse_builder.py,sha256=0YCSKGvc3LhshDyqSaGl0hd-jcM1dduJ68QauOlf5d8,7961
|
|
6
|
+
cli_def/backend/click/__init__.py,sha256=Gu4oJ-UpYbxOyoBfmGhBWX81aUqYvTWpfkcOoHEoKlw,191
|
|
7
|
+
cli_def/backend/click/click_binder.py,sha256=Z0yR3EMiIKm4sa6BzkVdbYrnQaOgq1pbvP9mlkPiTZ8,1365
|
|
8
|
+
cli_def/backend/click/click_builder.py,sha256=WfqvhQoordABDVm8i_zVGCCbuDWtxahxDskTeJ1wmE0,4577
|
|
9
|
+
cli_def/demo/__init__.py,sha256=GQTvb6YIa1jzRPOchLbfWw50u3T5LVDLBenvGPmJXNs,40
|
|
10
|
+
cli_def/demo/handlers.py,sha256=FC4qVo1UQICmQNKUymqj-kwYNJRJpbbkwVBx7h6P28k,3211
|
|
11
|
+
cli_def/demo/profiles/advanced.toml,sha256=Q84VspTgqgxubbgzfAfrQQYSqI-8JO2TyOIGcOrGIDs,861
|
|
12
|
+
cli_def/demo/profiles/beginner.toml,sha256=9Dp-4FQSksKALX6a_fRmHz-LaVa_DomtFP-_RyEAOzg,450
|
|
13
|
+
cli_def/models/__init__.py,sha256=C8WlyP9nLscibxlaiJREN1Y4Jz2zNCbf4CZYrrsQK7E,349
|
|
14
|
+
cli_def/models/abstract_node.py,sha256=7t7zIo8lGKLue8ITZjN-b5END4uW80Hgl9ZL-P1Ntls,2664
|
|
15
|
+
cli_def/models/argument_def.py,sha256=kGiYMR02-O5eWVqELFs6x49F8n1fA1eMkN5ERwEXla4,2252
|
|
16
|
+
cli_def/models/cli_def.py,sha256=hd751FaU5iQIzJ7fz0eYBfqatPmWTHF6I2PyXlRa3_0,906
|
|
17
|
+
cli_def/models/command_def.py,sha256=C_kUPr0GoCMVLAKasHCd5rQr0DLM8APcZWemyHMNe-s,1614
|
|
18
|
+
cli_def/models/mult_def.py,sha256=Zw8r4-Hc_wAegWjR9LgAd-w_GGrHb-OZYjJyuMQHmAs,2038
|
|
19
|
+
cli_def/models/schema/cli_schema.py,sha256=oAdBuV4vr_YqsuKkvFJO-poSbLSWNQlaYhjPcy4JcD8,385
|
|
20
|
+
cli_def/ops/__init__.py,sha256=-xL7Colq7mK0fb7soq5x1Pwiy3-S2eASZMwjZ0gotvc,239
|
|
21
|
+
cli_def/ops/dumper.py,sha256=9UpAWnlsCoFd6GPjaAY0rOT-r9Y_QIDibhAKFGVCnKg,6710
|
|
22
|
+
cli_def/ops/loader.py,sha256=6Otw5Cciawbdfb0qZvSqhbxhw4V82SIu3oPnnl2yvoo,1416
|
|
23
|
+
cli_def/ops/utils/__init__.py,sha256=kl1Z0cF9xFDBIXd4Y8OYuu6u-btm9Wwf2fGVezOjPok,46
|
|
24
|
+
cli_def/ops/utils/pretty_renderer.py,sha256=jD72Fb8XZtgHXyibMSjREyJSTg-F4qEwv76lNPaWyqQ,18585
|
|
25
|
+
cli_def/ops/utils/renderer.py,sha256=igU2oIZ1nE1GeeADX869ORB0H75lQDRTNxIuKntM6_8,5633
|
|
26
|
+
cli_def/ops/utils/renderer_ops.py,sha256=49yXcY2ptCrv00O0ZSOgIR6qAangd5XGkLttiSpYtek,5031
|
|
27
|
+
cli_def/parsers/__init__.py,sha256=eeBlwLWowfSS8sVxhL_kMSA967XoHsFNoATZds0Bgxw,120
|
|
28
|
+
cli_def/parsers/parser.py,sha256=p_QpuHEwK3qYaA6_hwunaXaJaf4K1EQyicgLzLYPXd4,3456
|
|
29
|
+
cli_def/resources/cli_def.toml,sha256=U56sPH9Ayk976oVRrvNTLi9cab08qKo6qKyD5Aa4dbc,3617
|
|
30
|
+
cli_def/runtime/__init__.py,sha256=g1kR6v7DcDvCeQtCLkyrVXpmy1oyn-GQQO8USAIH0p4,549
|
|
31
|
+
cli_def/runtime/context.py,sha256=M4nQeQXLDBCPYhE4OzEDUAoJSIjMQiUxWgoePESyTZ0,361
|
|
32
|
+
cli_def/runtime/dispatcher.py,sha256=d5MaNPFE0rDEBsosPOLXim4RYuF9SbzaFpBLIHgCIJY,6320
|
|
33
|
+
cli_def/runtime/event.py,sha256=3VW35xQBhWPalyD8UaUgUHV4dK0QRE6wmSuvmGIlVj0,988
|
|
34
|
+
cli_def/runtime/handler_support.py,sha256=3K46OYu8P8cvyIS28kuaYBFF2AA5lPBwvBmkCJhGAoQ,1998
|
|
35
|
+
cli_def/runtime/result.py,sha256=xTXmvgxVtMQmz0LhOOJlO77QTgGnpFOmI0v3JcU7PKA,2651
|
|
36
|
+
cli_def/runtime/runner.py,sha256=ZcUoY2aiaUX1cSYAUc_zzK28qmykWXMaTw85DkN5q-I,5244
|
|
37
|
+
cli_def/runtime/scanner.py,sha256=1h3_3jKqIC0NZ61SVufPS6wqz29eMbYE-PPzQTF5zZ8,4298
|
|
38
|
+
cli_def/runtime/session.py,sha256=m7LyAi_0ncf-pqGsZehYrgyoY6NvSEKV1JGsBE9nPxI,8392
|
|
39
|
+
cli_def/runtime/utils.py,sha256=TvudhIzd_0ieREczQHBVi9NmVdFobGoKSDoYFoxF7QE,1516
|
|
40
|
+
cli_def/runtime/_internal/__init__.py,sha256=C_lR42Skvvw--62hyPOPWsmbNj3ODRYCkGRUQQOIUZc,53
|
|
41
|
+
cli_def/runtime/_internal/scan_runner.py,sha256=vc7bn08fTl5YSsKu_kZqfdDyZrU1anKtpceUiKySzBE,719
|
|
42
|
+
cli_def/script/__init__.py,sha256=SWwYeiuF1gE6YtzcxHca2H5vgDOAbPZf5VSERZcpibw,42
|
|
43
|
+
cli_def/script/common.py,sha256=PBbAxPgAOgnxjLyIH4qkr99iL_JgSU2gP3dIV7Gmo70,663
|
|
44
|
+
cli_def/script/main.py,sha256=JoCDXZ1Nd1Z4F54F1UZL3Ht665H7qAzZqXLl2_d-Qh4,740
|
|
45
|
+
cli_def/script/handlers/__init__.py,sha256=4QHgQZSE1RXxIPi_PidmeXgXWT_V7iQZXI05IhOVOmQ,188
|
|
46
|
+
cli_def/script/handlers/dummy.py,sha256=6l6yziXwWSFTvbgseqpTnGJlOxm12Jj9o7z6gMAT5UE,1310
|
|
47
|
+
cli_def/script/handlers/dummy2.py,sha256=N0lLJMKDn8KlnIeSZeVn_pm2EYpF82_D0sgTmcCLIy4,710
|
|
48
|
+
cli_def/script/handlers/dump.py,sha256=o4AbhuQgZFd4ww5jGpPykHbNhI7dIPkiiPxL19E2qq8,1251
|
|
49
|
+
cli_def/script/handlers/repl.py,sha256=TXGsaaK1sKgmOfY23euRPrbZwEXleDjoo3FMvu-7qi0,1847
|
|
50
|
+
cli_def/script/handlers/run.py,sha256=OYrzRseeCsF1X-Dl83qc2E6ZB9HFdt2ef7OnmCaPJJs,1866
|
|
51
|
+
cli_def/script/handlers/scan.py,sha256=hO3hOJkQ589Vk4A85P8W665LZOGcz7r_TZlkA4nFa24,5561
|
|
52
|
+
cli_def/script/handlers/search.py,sha256=W-CQ-deQ0lD8SvjDbeTHpqvctfZUs3IKeZAM00On3f0,3277
|
|
53
|
+
cli_def-0.1.0.dist-info/licenses/LICENSE,sha256=fF_B_tVc24-wpf_0Ur7uYAoyRwH1ejd3D5Kwwu_R7wc,1030
|
|
54
|
+
cli_def-0.1.0.dist-info/METADATA,sha256=gE4vsAVrGRbsmXrgR-3b-f2Evoas2AqArlzWLP0K8Gg,8885
|
|
55
|
+
cli_def-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
56
|
+
cli_def-0.1.0.dist-info/entry_points.txt,sha256=Ly6VYL0Xo_v8ihtZtF3p35C8HJeMxPQpQSajKk-LiGE,53
|
|
57
|
+
cli_def-0.1.0.dist-info/top_level.txt,sha256=iy_Lq7P7H1s1-sjaGFUlN4txiWjQOUPn4vR8bLW12-c,8
|
|
58
|
+
cli_def-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tomesoft
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to do so, subject to the
|
|
10
|
+
following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cli_def
|