diff options
author | Eric Lin <anselor@gmail.com> | 2018-04-30 16:07:29 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-04-30 16:07:29 -0400 |
commit | e5699bc65b20b1428e3c8db5cf3f8b5d8bf41569 (patch) | |
tree | 1d6b6788a54941a307506fff6a7af4fcc474b820 /examples | |
parent | ab7ac493950040565d933ed02deaeb778ef977e3 (diff) | |
download | cmd2-git-e5699bc65b20b1428e3c8db5cf3f8b5d8bf41569.tar.gz |
Added more tests exercising the pyscript bridge.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/subcommands.py | 1 | ||||
-rwxr-xr-x | examples/tab_autocompletion.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/subcommands.py b/examples/subcommands.py index 75c0733e..eda88072 100755 --- a/examples/subcommands.py +++ b/examples/subcommands.py @@ -13,6 +13,7 @@ from cmd2 import with_argparser sport_item_strs = ['Bat', 'Basket', 'Basketball', 'Football', 'Space Ball'] + class SubcommandsExample(cmd2.Cmd): """ Example cmd2 application where we a base command which has a couple subcommands diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index 078faac2..38a2b4e9 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -18,6 +18,7 @@ actors = ['Mark Hamill', 'Harrison Ford', 'Carrie Fisher', 'Alec Guinness', 'Pet 'Lupita Nyong\'o', 'Andy Serkis', 'Liam Neeson', 'Ewan McGregor', 'Natalie Portman', 'Jake Lloyd', 'Hayden Christensen', 'Christopher Lee'] + def query_actors() -> List[str]: """Simulating a function that queries and returns a completion values""" return actors |