https://flyte.org logo
#contribute
Title
# contribute
b

Byron Hsu

05/09/2023, 5:27 AM
Beautify deviceflow prompt: https://github.com/flyteorg/flytekit/pull/1625 cc @Yee @Kevin Su
k

Ketan (kumare3)

05/10/2023, 4:29 AM
i left a comment
b

Byron Hsu

05/10/2023, 5:29 AM
@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

Ketan (kumare3)

05/10/2023, 1:42 PM
Fair use click but instead use rich_click
b

Byron Hsu

05/11/2023, 4:56 AM
64 Views