pub fn resolve_term_option(
term_override: Option<&str>,
cwd: &Path,
) -> Result<(LaunchMethod, Option<String>)>Expand description
Resolve a launch method honoring an optional CLI override.
Resolution order:
term_override(the-T/--termCLI flag), ifSome— parsed viaparse_term_option, so it understands aliases and themethod:session-namesyntax.CW_LAUNCH_METHODenv var..cwconfig.json(repo-local)launch.method.- global
~/.config/git-worktree-manager/config.jsonlaunch.method. LaunchMethod::Foreground(the default).
Returns (method, session_name) where session_name is Some only
when the override used the method:session-name syntax (env / config
paths can’t carry a session name today).