Skip to main content

vs_core/service/
hook_env.rs

1//! Services for generating shell hook environment updates.
2
3use vs_shell::ShellKind;
4
5use crate::{App, CoreError};
6
7impl App {
8    /// Renders hidden shell hook output.
9    pub fn hook_env(&self, shell: &str) -> Result<String, CoreError> {
10        let shell = ShellKind::parse(shell)?;
11        self.render_hook_env(shell)
12    }
13}