vs-core 0.0.1

Core orchestration services for the vs version manager.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use vs_shell::{ShellKind, render_activation};

use crate::{App, CoreError};

impl App {
    /// Renders an activation script for the selected shell.
    pub fn activate(&self, shell: &str) -> Result<String, CoreError> {
        let shell = ShellKind::parse(shell)?;
        Ok(render_activation(shell))
    }
}