diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 11:48:44 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 11:48:44 +0200 |
commit | 135d09bfb305d54cac1ba1fb9861d5b9309a7b3a (patch) | |
tree | 459109a40320530993ae560f55a730a72df31416 /pkgs/by-name/ts/tskm/src/interface/neorg/mod.rs | |
parent | refactor(modules/legacy/firefox): Move to by-name (diff) | |
download | nixos-config-135d09bfb305d54cac1ba1fb9861d5b9309a7b3a.zip |
feat(pkgs/neorg): Rewrite in rust
This improves upon neorg by integrating it better into the system context.
Diffstat (limited to 'pkgs/by-name/ts/tskm/src/interface/neorg/mod.rs')
-rw-r--r-- | pkgs/by-name/ts/tskm/src/interface/neorg/mod.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/by-name/ts/tskm/src/interface/neorg/mod.rs b/pkgs/by-name/ts/tskm/src/interface/neorg/mod.rs new file mode 100644 index 00000000..dc5cdf19 --- /dev/null +++ b/pkgs/by-name/ts/tskm/src/interface/neorg/mod.rs @@ -0,0 +1,18 @@ +use std::path::PathBuf; + +use anyhow::Result; + +use crate::task::{run_task, Project}; + +pub mod handle; +pub use handle::handle; + +impl Project { + pub(super) fn get_neorg_path(&self) -> Result<PathBuf> { + let project_path = run_task(&[ + "_get", + format!("rc.context.{}.rc.neorg_path", self.to_context_display()).as_str(), + ])?; + Ok(PathBuf::from(project_path.as_str())) + } +} |