6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Handle command errors and ctrl+d commands in UI

This commit is contained in:
Régis Behmo 2019-03-16 12:20:28 +01:00
parent 0d2c08f8e8
commit 63a633b3fc
2 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,7 @@
## Latest
- [Improvement] Error and interrupt handling in UI and web UI
- [Bugfix] Fix missing webui env directory
## 3.1.0 (2019-03-09)

View File

@ -9,5 +9,10 @@ def ui():
click.echo("""Welcome to the Tutor interactive shell UI!
Type "help" to view all available commands.
Type "local quickstart" to configure and launch a new platform from scratch.
""")
click_repl.repl(click.get_current_context())
Type <ctrl-d> to exit.""")
while True:
try:
click_repl.repl(click.get_current_context())
return # this happens on a ctrl+d
except Exception:
pass