orgflow 0.2.0

A Rust library for managing documents with support for tasks and notes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

pub struct Configuration;

impl Configuration {
    pub fn basefolder() -> String {
        env::var("ORGFLOW_BASEFOLDER").unwrap_or_else(|_| {
            // Try to use a more reliable default path
            if let Some(home) = env::var_os("HOME") {
                format!("{}/orgflow", home.to_string_lossy())
            } else {
                // Fallback to current directory if HOME is not available
                "./orgflow".to_string()
            }
        })
    }
}