monochromium 0.4.4

A fast, local-first CLI note-taking app for developers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::config::setup_shell;
use crate::types::MonoError;

pub fn init() -> Result<String, MonoError> {
    match setup_shell() {
        Ok(shell_path) => Ok(format!(
            "Successfully configured Monochromium reminders in {}",
            shell_path.display()
        )),
        Err(e) => Err(MonoError::Config(format!(
            "Failed to configure zshrc: {}",
            e
        ))),
    }
}