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

added silent option in utils.get_sessions #119

Merged
merged 2 commits into from
May 11, 2024

Conversation

zhengrc19
Copy link
Contributor

Trying to solve #118.

Added a silent option to session_manager.utils.get_sessions which will suppress the print messages and notifications.

Justification
The scan_dir function used in utils.lua:L105 already supports a silent option to pass in for silence. Adding an option in get_sessions simply passes the option to scan_dir and at the same time is applied to the function itself.

This will not affect the behavior of get_sessions in other places as well because the opts argument is totally optional.

@Shatur
Copy link
Owner

Shatur commented May 10, 2024

Could you apply formatting?

@Shatur Shatur linked an issue May 11, 2024 that may be closed by this pull request
@Shatur Shatur merged commit a0b9d25 into Shatur:master May 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add silent option to utils.get_sessions
2 participants