scoop-uv 0.12.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
18
//! Init command

use crate::cli::ShellType;
use crate::error::Result;
use crate::shell;

/// Execute the init command
pub fn execute(shell: ShellType) -> Result<()> {
    let script = match shell {
        ShellType::Bash => shell::bash::init_script(),
        ShellType::Zsh => shell::zsh::init_script(),
        ShellType::Fish => shell::fish::init_script(),
        ShellType::Powershell => shell::powershell::init_script(),
    };

    print!("{script}");
    Ok(())
}