Skip to content
Open
22 changes: 11 additions & 11 deletions pls_cli/please.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ def language(lang: str) -> None:
else:
settings['language'] = lang
Settings().write_settings(settings)
# Here function Dowload quotes
# Here function Dowload quotes
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guedesfelipe i am reformat the code, the download part would go here, but i really don't have much idea how to query the current branch to be able to download the quotes, can you give me a hint?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I will take a look at the code and help you with that as soon as possible

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, I was busy these days and I still haven't been able to make an example code, but I was thinking of doing the part of downloading the translated files like this:
https://github.com/Textualize/rich/blob/master/examples/downloader.py

Or with Requests library...


center_print(
Rule(
'Thanks for letting me know that!',
style=insert_or_delete_line_style,
),
style=insert_or_delete_text_style,
Rule(
'Thanks for letting me know that!',
style=insert_or_delete_line_style,
),
style=insert_or_delete_text_style,
)
else:
else:
center_print(
Rule(
'Wrong option!',
Expand All @@ -160,7 +160,7 @@ def language(lang: str) -> None:
style=insert_or_delete_text_style,
)
code_markdown = Markdown(
"""
"""
pls list-language
"""
)
Expand All @@ -171,6 +171,7 @@ def language(lang: str) -> None:
)
console.print(code_markdown)


@app.command('list-language', rich_help_panel='Utils and Configs')
def list_language() -> None:
"""List language options 💬"""
Expand All @@ -186,7 +187,7 @@ def list_language() -> None:
task_table.add_column('', justify='center')

for command, language in list_language.items():

command = f'{command}'
language = f'{language}'

Expand Down Expand Up @@ -568,7 +569,6 @@ def setup() -> None:
)
console.print(code_markdown)


center_print(
'To apply the changes restart the terminal or use this command:',
style='red',
Expand Down