Added ascii art to cli

This commit is contained in:
SwiftyOS
2023-09-16 19:53:28 +02:00
parent b155508b12
commit cbcdcad43c
2 changed files with 24 additions and 3 deletions

25
cli.py
View File

@@ -1,3 +1,9 @@
"""
This is a minimal file intended to be run by users to help them manage the autogpt projects.
If you want to contribute, please use only libraries that come as part of Python.
To ensure efficiency, add the imports to the functions so only what is needed is imported.
"""
try: try:
import click import click
import github import github
@@ -20,11 +26,28 @@ def setup():
import os import os
import subprocess import subprocess
click.echo(
click.style(
"""
d8888 888 .d8888b. 8888888b. 88888888888
d88888 888 d88P Y88b 888 Y88b 888
d88P888 888 888 888 888 888 888
d88P 888 888 888 888888 .d88b. 888 888 d88P 888
d88P 888 888 888 888 d88""88b 888 88888 8888888P" 888
d88P 888 888 888 888 888 888 888 888 888 888
d8888888888 Y88b 888 Y88b. Y88..88P Y88b d88P 888 888
d88P 888 "Y88888 "Y888 "Y88P" "Y8888P88 888 888
""",
fg="green",
)
)
script_dir = os.path.dirname(os.path.realpath(__file__)) script_dir = os.path.dirname(os.path.realpath(__file__))
setup_script = os.path.join(script_dir, "setup.sh") setup_script = os.path.join(script_dir, "setup.sh")
if os.path.exists(setup_script): if os.path.exists(setup_script):
click.echo(click.style("🚀 Setup initiated...\n", fg="green"))
subprocess.Popen([setup_script], cwd=script_dir) subprocess.Popen([setup_script], cwd=script_dir)
click.echo(click.style("🚀 Setup initiated", fg="green"))
else: else:
click.echo( click.echo(
click.style( click.style(

View File

@@ -51,5 +51,3 @@ elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" ==
else else
echo "Unsupported OS. Please install Google Chrome manually from https://www.google.com/chrome/" echo "Unsupported OS. Please install Google Chrome manually from https://www.google.com/chrome/"
fi fi
echo "Installation has been completed."