hit control-c

This commit is contained in:
Paul Gauthier 2024-04-28 14:38:30 -07:00
parent 0bf45c2cf6
commit 73bad5250b

View file

@ -146,12 +146,9 @@ def scrub_sensitive_info(args, text):
def launch_gui(args): def launch_gui(args):
from aider import gui from aider import gui
target = gui.__file__ print("Hit CONTROL-C to exit...")
# from streamlit.web import bootstrap target = gui.__file__
# bootstrap.load_config_options(flag_options={})
# cli.main_run(target, args)
# sys.argv = ['streamlit', 'run', '--'] + args
runner = CliRunner() runner = CliRunner()
st_args = [ st_args = [
@ -162,6 +159,11 @@ def launch_gui(args):
] ]
runner.invoke(cli.main, st_args + 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): def main(argv=None, input=None, output=None, force_git_root=None, return_coder=False):
if argv is None: if argv is None: