vs-core 0.0.3

Core orchestration services for the vs version manager.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Services for generating shell hook environment updates.

use vs_shell::ShellKind;

use crate::{App, CoreError};

impl App {
    /// Renders hidden shell hook output.
    pub fn hook_env(&self, shell: &str) -> Result<String, CoreError> {
        let shell = ShellKind::parse(shell)?;
        self.render_hook_env(shell)
    }
}