Skip to content

Commit 4a3c5a0

Browse files
committed
Removed ability to call commands as if they were functions in pyscript (e.g. app.help())
1 parent d3208c8 commit 4a3c5a0

22 files changed

+38
-575
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Deprecations
55
* Deprecated support for bash completion since this feature had slow performance. Also it relied on
66
``AutoCompleter`` which has since developed a dependency on ``cmd2`` methods.
7+
* Removed ability to call commands in ``pyscript`` as if they were functions (e.g ``app.help()``) in favor
8+
of only supporting one ``pyscript`` interface. This simplifies future maintenance.
79
* Potentially breaking changes
810
* Made ``cmd2_app`` a positional and required argument of ``AutoCompleter`` since certain functionality now
911
requires that it can't be ``None``.

cmd2/pyscript_bridge.py

Lines changed: 25 additions & 281 deletions
Large diffs are not rendered by default.

tests/pyscript/bar1.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/pyscript/custom_echo.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/pyscript/foo1.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/pyscript/foo2.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/pyscript/foo3.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/pyscript/foo4.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/pyscript/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# flake8: noqa F821
22
app.cmd_echo = True
3-
app.help()
3+
app('help')

tests/pyscript/help_media.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)