From 73bad5250b6cfebf260bfb6443bb2ded3f27faef Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 28 Apr 2024 14:38:30 -0700 Subject: [PATCH] hit control-c --- aider/main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/aider/main.py b/aider/main.py index 99805c0e3..3617e31d0 100644 --- a/aider/main.py +++ b/aider/main.py @@ -146,12 +146,9 @@ def scrub_sensitive_info(args, text): def launch_gui(args): from aider import gui - target = gui.__file__ + print("Hit CONTROL-C to exit...") - # from streamlit.web import bootstrap - # bootstrap.load_config_options(flag_options={}) - # cli.main_run(target, args) - # sys.argv = ['streamlit', 'run', '--'] + args + target = gui.__file__ runner = CliRunner() st_args = [ @@ -162,6 +159,11 @@ def launch_gui(args): ] runner.invoke(cli.main, st_args + args) + # from streamlit.web import bootstrap + # bootstrap.load_config_options(flag_options={}) + # cli.main_run(target, args) + # sys.argv = ['streamlit', 'run', '--'] + args + def main(argv=None, input=None, output=None, force_git_root=None, return_coder=False): if argv is None: