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