mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
14 lines
378 B
Rust
14 lines
378 B
Rust
#![allow(clippy::module_inception)]
|
|
|
|
yazi_macro::mod_flat!(add delete dependency deploy git hash install package upgrade);
|
|
|
|
use anyhow::Context;
|
|
use yazi_fs::Xdg;
|
|
|
|
pub(super) fn init() -> anyhow::Result<()> {
|
|
let root = Xdg::state_dir().join("packages");
|
|
std::fs::create_dir_all(&root)
|
|
.with_context(|| format!("failed to create packages directory: {root:?}"))?;
|
|
|
|
Ok(())
|
|
}
|