scoop-uv 0.13.0

Scoop up your Python envs — pyenv-style workflow powered by uv
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Deactivate command

use crate::cli::ShellType;
use crate::error::Result;
use crate::shell::{detect_shell, print_deactivate_script};

/// Execute the deactivate command
/// Outputs shell script to be eval'd
pub fn execute(shell: Option<ShellType>) -> Result<()> {
    // Detect shell or use specified
    let shell_type = shell.unwrap_or_else(detect_shell);

    // Output deactivation script for eval
    print_deactivate_script(shell_type);

    Ok(())
}