commit 2660ab54237254131a6d6358fef11ac7e6f2f700 from: witcher date: Sat Apr 22 16:47:56 2023 UTC implement querying orphaned packages commit - e88c26a494cef60959734d389bb7f95e9b55458b commit + 2660ab54237254131a6d6358fef11ac7e6f2f700 blob - 848d68da02d430dbec3714568f5a86df0f00e779 blob + f8b440c832f920be1b56be73d129c3e56e1a9f7a --- src/main.rs +++ src/main.rs @@ -16,6 +16,8 @@ struct Arguments { enum Commands { /// Show packages flagged out-of-date. Flagged, + /// Show packages without a maintainer. + Orphaned, } trait Operation { @@ -27,6 +29,7 @@ impl Operation for Commands { fn filter(&self, p: &raur::Package) -> bool { match self { Self::Flagged => p.out_of_date.is_some(), + Self::Orphaned => p.maintainer.is_none(), } } @@ -45,6 +48,7 @@ impl Operation for Commands { p.name.to_string() } } + Self::Orphaned => p.name.clone(), } } }