pub fn session_exists(project_name: &str) -> Option<Commands> {
    if has_session(project_name).success() {
        Some(open(project_name))
    } else {
        None
    }
}
/// Find out if a tmux session is already active with this name. If it is active
/// return `Some<Commands::Attach>` with a command to attach to the session. If a
/// session is not active return None and let the app carry on.
Find out if a tmux session is already active with this name. If it is active
return `Some` with a command to attach to the session. If a
session is not active return None and let the app carry on.
Find out if a tmux session is already active with this name . If it is active return ` Some ` with a command to attach to the session . If a session is not active return None and let the app carry on .
pub fn session_exists(project_name: &str) -> Option<Commands> {
    if has_session(project_name).success() {
        Some(open(project_name))
    } else {
        None
    }
}
pub fn session_exists ( project_name : & str ) -> Option < Commands > { if has_session ( project_name ) . success ( ) { Some ( open ( project_name ) ) } else { None } }
Find out if a tmux session is already active with this name.
Find out if a tmux session is already active with this name .
project_name
&str
project_name
&str