diff options
author | bd <bdunahu@operationnull.com> | 2025-02-24 12:46:43 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-02-24 12:46:43 -0500 |
commit | 42c03e2ad6110625b54c8aab5960a5d3723e54b0 (patch) | |
tree | 0df2f4cc266ecd2f2fc6d773d776dbd5a7989336 /src/repl |
initial commit
Diffstat (limited to 'src/repl')
-rw-r--r-- | src/repl/repl.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/repl/repl.py b/src/repl/repl.py new file mode 100644 index 0000000..d78986d --- /dev/null +++ b/src/repl/repl.py @@ -0,0 +1,10 @@ +from code import InteractiveConsole + +def start(user): + header =f"Press C-d to close." + footer = f"See you later, {user}!" + + scope_vars = {"cache_size": 12} + + InteractiveConsole(locals=scope_vars).interact(header, "") + return footer |