From e3ae2c888f54c574c95480bed940082997d9e85c Mon Sep 17 00:00:00 2001 From: Psychokiller1888 Date: Fri, 15 Jul 2022 18:50:29 +0200 Subject: [PATCH] So people don't think it's stuck, print that the cli is starting --- AliceCli/MainMenu.py | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/AliceCli/MainMenu.py b/AliceCli/MainMenu.py index f9517d6..7fc7daa 100644 --- a/AliceCli/MainMenu.py +++ b/AliceCli/MainMenu.py @@ -41,13 +41,14 @@ def mainMenu(ctx: click.Context): global CHECKED, VERSION click.clear() + click.secho(message='Starting AliceCLI, checking for updates, please wait...') if not CHECKED: result = subprocess.run('pip index versions projectalice-cli'.split(), capture_output=True, text=True) if 'error' not in result.stderr.lower(): regex = re.compile(r"INSTALLED:.*(?P[\d]+\.[\d]+\.[\d]+)\n.*LATEST:.*(?P[\d]+\.[\d]+\.[\d]+)") match = regex.search(result.stdout.strip()) - + click.clear() if not match: click.secho(message='Failed checking CLI version\n', fg='red') else: @@ -62,10 +63,12 @@ def mainMenu(ctx: click.Context): VERSION = str(installed) else: + click.clear() click.secho(message='Failed checking CLI version\n', fg='red') CHECKED = True else: + click.clear() click.echo(f'Project Alice CLI version {VERSION}\n') action = inquirer.select( diff --git a/setup.py b/setup.py index ceb103a..48f4117 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( name='projectalice-cli', - version='1.3.23', + version='1.3.24', long_description=Path('README.md').read_text(encoding='utf8'), long_description_content_type='text/markdown', python_requires='>=3.8',