feat(status): add status type

This commit was merged in pull request #69.
This commit is contained in:
alexion committed 2026-09-17 14:57:50 -04:00
1 parent 37539682d4
commit 49cf043035
10 files changed
+188 -14

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@ fn is_excluded_dir(path: &Path) -> bool {
})
}
fn collect_source_files(path: &Path) -> xatu::Result<Vec<SourceFile>> {
fn collect_source_files(path: &Path) -> status::Result<Vec<SourceFile>> {
let metadata = std::fs::symlink_metadata(path)?;
if metadata.file_type().is_dir() {
@@ -59,7 +59,7 @@ struct Args {
paths: Vec<PathBuf>,
}
fn main() -> xatu::Result<()> {
fn main() -> status::Result<()> {
let args = Args::parse();
let paths: Vec<PathBuf> = args
@@ -71,7 +71,7 @@ fn main() -> xatu::Result<()> {
let files: Vec<SourceFile> = paths
.iter()
.map(|path| collect_source_files(path))
.collect::<xatu::Result<Vec<_>>>()?
.collect::<status::Result<Vec<_>>>()?
.into_iter()
.flatten()
.collect();