mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix(login): show the configured platform host in the sign-in banner
This commit is contained in:
parent
93dc0019fa
commit
ef722c2ee0
1 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import time
|
|||
import webbrowser
|
||||
from pathlib import Path
|
||||
from typing import Any, cast
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import requests
|
||||
from rich.console import Console
|
||||
|
|
@ -123,7 +124,8 @@ def _login(console: Console, argv: list[str]) -> int:
|
|||
return int(exc.code or 2)
|
||||
|
||||
console.print()
|
||||
console.print("[bold]Signing in to the Strix platform[/] [dim](app.strix.ai)[/]")
|
||||
host = urlparse(_app_url()).netloc or _app_url()
|
||||
console.print(f"[bold]Signing in to the Strix platform[/] [dim]({host})[/]")
|
||||
console.print(
|
||||
"[dim]This creates your account and workspace when needed, and stores an API token.[/]"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue