feat: update

This commit is contained in:
kjuulh 2025-05-25 16:12:29 +02:00
parent b86fec2a58
commit 15298f1f96
4 changed files with 853 additions and 560 deletions

1407
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ tempfile = { version = "3.10.0" }
serde_json = "1.0.113" serde_json = "1.0.113"
rlua = "0.19.8" rlua = "0.19.8"
rlua-searcher = "0.1.0" rlua-searcher = "0.1.0"
dotenv = { version = "0.15.0", features = ["clap"] } dotenvy = { version = "0.15.7" }
blake3 = "1.5.0" blake3 = "1.5.0"
tokio = { version = "1.36.0", features = ["full"] } tokio = { version = "1.36.0", features = ["full"] }
futures-util = "0.3.30" futures-util = "0.3.30"

View File

@ -129,7 +129,7 @@ pub fn execute_init(exe_submatch: &ArgMatches, _cli: CuddleCli) -> anyhow::Resul
if dir.count() != 0 { if dir.count() != 0 {
for entry in read_dir(&path)? { for entry in read_dir(&path)? {
let entry = entry?; let entry = entry?;
if entry.file_name() == ".git" { if entry.file_name() == ".git" || entry.file_name() == ".jj" {
continue; continue;
} else { } else {
anyhow::bail!("Directory {} is not empty", &path); anyhow::bail!("Directory {} is not empty", &path);

View File

@ -11,7 +11,7 @@ mod util;
fn main() -> anyhow::Result<()> { fn main() -> anyhow::Result<()> {
init_logging()?; init_logging()?;
let _ = dotenv::dotenv(); let _ = dotenvy::dotenv();
let config = CuddleConfig::from_env()?; let config = CuddleConfig::from_env()?;