Skip to content

Commit

Permalink
feat: show path for CLI with each CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-dixit committed Apr 25, 2024
1 parent 326cdf2 commit a979bb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/composio/composio_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,23 +429,23 @@ def check_for_updates():
response = requests.get("https://pypi.org/pypi/composio_core/json")
latest_pypi_version = response.json()['info']['version']

console.print(f"\n Version: {installed_version} \n")
console.print(f"\n Version: {installed_version}")
path = os.path.dirname(os.path.realpath(__file__))
console.print(f" Path: {path} \n")

if(latest_pypi_version > installed_version):
console.print(f"\n[yellow] 🧐🧐 A newer version {latest_pypi_version} of composio-core is available. Please upgrade.[/yellow]")
console.print(f"\n 🔧🔧 Run [cyan]pip install --upgrade composio-core=={latest_pypi_version} [/cyan] to update.\n")

def print_intro():
path = os.path.dirname(os.path.realpath(__file__))
console.print(f"> Path: {path}")
text = termcolor.colored('Composio', 'white', attrs=['bold'])
aiPlatformText = termcolor.colored('100+', 'green', attrs=['bold'])
pinkEmojiText = termcolor.colored('hello@composio.dev', 'magenta', attrs=['bold'])
boldNoteText = termcolor.colored('Note*', 'white', attrs=['bold'])
print(f"""
┌───────────────────────────────────────────────────────────────────────────┐
│ │
{text}
{text}
│ │
│ Plug {aiPlatformText} platforms in your agent │
│ │
Expand Down

0 comments on commit a979bb2

Please sign in to comment.