Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace halo with yaspin #19

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions fief_client/integrations/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import urllib.parse
import webbrowser

from halo import Halo
from yaspin import yaspin
from yaspin.spinners import Spinners

from fief_client import (
Fief,
Expand Down Expand Up @@ -233,8 +234,9 @@ def authorize(
)
webbrowser.open(authorization_url)

spinner = Halo(
text="Please complete authentication in your browser.", spinner="dots"
spinner = yaspin(
text="Please complete authentication in your browser.",
spinner=Spinners.dots,
)
spinner.start()

Expand Down Expand Up @@ -263,7 +265,7 @@ def authorize(
)
self._save_credentials(tokens, userinfo)

spinner.succeed("Successfully authenticated")
spinner.ok("Successfully authenticated")

return tokens, userinfo

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module = "jwcrypto.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "halo.*"
module = "yaspin.*"
ignore_missing_imports = true

[tool.ruff]
Expand Down Expand Up @@ -113,7 +113,7 @@ flask = [
]

cli = [
"halo",
"yaspin",
]

[project.urls]
Expand Down