Skip to main content

vs_core/service/
activate.rs

1//! Shell activation service entry points.
2
3use vs_shell::{ShellKind, render_activation};
4
5use crate::{App, CoreError};
6
7impl App {
8    /// Renders an activation script for the selected shell.
9    pub fn activate(&self, shell: &str) -> Result<String, CoreError> {
10        let shell = ShellKind::parse(shell)?;
11        Ok(render_activation(shell))
12    }
13}