Beautify deviceflow prompt: <https://github.com/fl...
# contribute
b
Beautify deviceflow prompt: https://github.com/flyteorg/flytekit/pull/1625 cc @Yee @Kevin Su
k
i left a comment
b
@Ketan (kumare3) do you mean using flytekit logger? it looks weird
or we just create a console in authenticator.py like
Copy code
from rich.console import Console
from rich.text import Text
from rich.style import Style

# Create a console instance
console = Console()

# Create the text with formatted styles and colors
text = Text.assemble(
    f"To Authenticate, navigate in a browser to the following URL: ",
    Text(resp.verification_uri, style=Style(color="blue", underline=True)),
    f" and enter code: ",
    Text(resp.user_code, style=Style(color="blue")),
)

# Print the text to the console
console.print(text)
k
Fair use click but instead use rich_click
b
151 Views