funpou 0.1.0

Quick one-line memos with automatic timestamps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::Path;

use anyhow::Result;

use crate::config::Config;

pub fn execute(config: &Config, config_path: &Path, path_only: bool) -> Result<()> {
    if path_only {
        println!("{}", config_path.display());
        return Ok(());
    }

    let toml_str = toml::to_string_pretty(config)?;
    println!("{toml_str}");

    Ok(())
}