stynx-code-commands 3.6.2

Slash commands and file reference expansion
Documentation
1
2
3
4
5
6
7
8
9
10
11
use stynx_code_errors::AppResult;
use crate::application::expand_file_references;
use crate::domain::InputPreprocessor;

pub struct FileReferenceExpander;

impl InputPreprocessor for FileReferenceExpander {
    fn expand(&self, input: &str) -> AppResult<String> {
        Ok(expand_file_references(input))
    }
}