Resolve some pathing issues; cleanup.

This commit is contained in:
Cutieguwu
2026-02-15 20:15:26 -05:00
parent 16accb8ab8
commit 17f7b9dca9
3 changed files with 20 additions and 37 deletions

View File

@@ -1,6 +1,6 @@
use std::fs::{File, OpenOptions};
use std::io::Read;
use std::path::PathBuf;
use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
@@ -28,6 +28,11 @@ impl Prey {
}
}
pub fn with_entry_point<P: AsRef<Path>>(&mut self, entry_point: P) -> &mut Self {
self.package.entry_point = entry_point.as_ref().to_path_buf();
self
}
pub fn entry_point(&self) -> PathBuf {
self.package.entry_point.clone()
}