Beautify deviceflow prompt: <https://github.com/fl...
# contribute
p
Beautify deviceflow prompt: https://github.com/flyteorg/flytekit/pull/1625 cc @thankful-minister-83577 @glamorous-carpet-83516
f
i left a comment
🙏 1
p
@freezing-airport-6809 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)
f
Fair use click but instead use rich_click
flyte 1
p
@freezing-airport-6809 https://github.com/flyteorg/flytekit/pull/1625 can you ship
151 Views