replbase 0.0.10__tar.gz → 0.0.12__tar.gz
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.
- {replbase-0.0.10 → replbase-0.0.12}/PKG-INFO +1 -1
- {replbase-0.0.10 → replbase-0.0.12}/pyproject.toml +1 -1
- {replbase-0.0.10 → replbase-0.0.12}/replbase/repl_base.py +0 -5
- {replbase-0.0.10 → replbase-0.0.12}/LICENSE +0 -0
- {replbase-0.0.10 → replbase-0.0.12}/README.md +0 -0
- {replbase-0.0.10 → replbase-0.0.12}/replbase/__init__.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "replbase"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.12"
|
|
8
8
|
description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
|
|
9
9
|
authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
|
|
10
10
|
license = "MIT"
|
|
@@ -51,7 +51,6 @@ class ReplCommand:
|
|
|
51
51
|
command: Callable = None
|
|
52
52
|
help_txt: str = ""
|
|
53
53
|
parser: argparse.ArgumentParser = None
|
|
54
|
-
def_args: list = field(default_factory=list)
|
|
55
54
|
def_kwargs: dict = field(default_factory=dict)
|
|
56
55
|
|
|
57
56
|
|
|
@@ -228,7 +227,6 @@ class ReplBase:
|
|
|
228
227
|
def add_command(
|
|
229
228
|
self,
|
|
230
229
|
cmd_name: str,
|
|
231
|
-
*def_args,
|
|
232
230
|
cmd_func: Callable = None,
|
|
233
231
|
help_txt: str = "",
|
|
234
232
|
use_parser: bool = False,
|
|
@@ -259,8 +257,6 @@ class ReplBase:
|
|
|
259
257
|
new_cmd.parser = argparse.ArgumentParser(
|
|
260
258
|
description=description or help_txt
|
|
261
259
|
)
|
|
262
|
-
if def_args:
|
|
263
|
-
new_cmd.def_args = def_args
|
|
264
260
|
if def_kwargs:
|
|
265
261
|
new_cmd.def_kwargs = def_kwargs
|
|
266
262
|
|
|
@@ -339,7 +335,6 @@ class ReplBase:
|
|
|
339
335
|
|
|
340
336
|
cmd.command(cmd.parser.parse_args(cmd_args))
|
|
341
337
|
else:
|
|
342
|
-
cmd_args = cmd_args or cmd.def_args
|
|
343
338
|
if cmd.def_kwargs:
|
|
344
339
|
cmd.command(*cmd_args, **cmd.def_kwargs)
|
|
345
340
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|