Skip to main content

resolve_session_with_alias

Function resolve_session_with_alias 

Source
pub fn resolve_session_with_alias(
    store: &SessionStore,
    alias_store: &AliasStore,
    identifier: &str,
    interactive: bool,
) -> Result<Session, ResolveError>
Expand description

Resolve a session identifier with alias lookup.

Resolution order:

  1. Check alias store – if alias exists, resolve the aliased target
  2. Fall through to normal resolution (name -> UUID)

This is the preferred entry point for all commands that accept a session identifier. The non-alias version resolve_session remains available for internal use.

§Errors

Returns ResolveError if the session cannot be found by alias, name, or UUID.