extract group, section, package to grouping module

This commit is contained in:
timeshifter
2023-01-11 13:22:27 +01:00
parent 3088957e04
commit 84ad3668b5
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ use std::{collections::HashSet, fmt::Display};
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use crate::section::Section; use super::Section;
#[derive(Debug)] #[derive(Debug)]
pub struct Group { pub struct Group {
+7
View File
@@ -0,0 +1,7 @@
mod group;
mod package;
mod section;
pub use group::Group;
pub(super) use package::Package;
pub(super) use section::Section;
+1 -1
View File
@@ -7,7 +7,7 @@ use std::{
use anyhow::{ensure, Context, Result}; use anyhow::{ensure, Context, Result};
use crate::Package; use super::Package;
#[derive(Debug, Eq)] #[derive(Debug, Eq)]
pub struct Section { pub struct Section {
+3 -5
View File
@@ -4,12 +4,10 @@ mod backend;
mod cmd; mod cmd;
mod core; mod core;
mod env; mod env;
mod group; mod grouping;
mod package;
mod path; mod path;
mod section;
mod ui; mod ui;
pub use crate::core::Pacdef; pub use crate::core::Pacdef;
pub use group::Group; pub use crate::grouping::Group;
pub use package::Package; pub(crate) use crate::grouping::Package;