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

Add semantic styles helpers #244

Merged
merged 1 commit into from
Apr 15, 2021
Merged

Add semantic styles helpers #244

merged 1 commit into from
Apr 15, 2021

Conversation

glensc
Copy link
Collaborator

@glensc glensc commented Apr 15, 2021

This allows to use styles like "error", "success" so they be colored identically, and in the future can change style by changing style, not code:

import plex_trakt_sync.style

PROMPT_TRAKT_CLIENT_SECRET = style.prompt("Please enter your client secret")
TRAKT_LOGIN_SUCCESS = style.success(
    "You are now logged into Trakt. "
    "Your Trakt credentials have been added in .env and .pytrakt.json files."
)

@glensc glensc self-assigned this Apr 15, 2021
@glensc glensc merged commit 70c49dc into Taxel:0.7.x Apr 15, 2021
@glensc glensc deleted the click-styles branch April 15, 2021 14:28
@glensc glensc mentioned this pull request Apr 17, 2021
Repository owner locked as resolved and limited conversation to collaborators Jan 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant