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.
Trying to solve #118.
Added a
silent
option tosession_manager.utils.get_sessions
which will suppress the print messages and notifications.Justification The
scan_dir
function used inutils.lua:L105
already supports asilent
option to pass in for silence. Adding an option inget_sessions
simply passes the option toscan_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 theopts
argument is totally optional.