HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/anaconda_cloud_auth/cli.py
import typer

from anaconda_cloud_auth.client import BaseClient
from anaconda_cloud_auth.console import console

app = typer.Typer(add_completion=False, help="Anaconda.cloud auth commands")


@app.command(name="info")
def auth_info() -> None:
    """Display information about the currently signed-in user"""
    client = BaseClient()
    response = client.get("/api/account")
    console.print("Your Anaconda Cloud info:")
    console.print(response.json())