extract group, section, package to grouping module
This commit is contained in:
@@ -5,7 +5,7 @@ use std::{collections::HashSet, fmt::Display};
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
use crate::section::Section;
|
||||
use super::Section;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Group {
|
||||
@@ -0,0 +1,7 @@
|
||||
mod group;
|
||||
mod package;
|
||||
mod section;
|
||||
|
||||
pub use group::Group;
|
||||
pub(super) use package::Package;
|
||||
pub(super) use section::Section;
|
||||
@@ -7,7 +7,7 @@ use std::{
|
||||
|
||||
use anyhow::{ensure, Context, Result};
|
||||
|
||||
use crate::Package;
|
||||
use super::Package;
|
||||
|
||||
#[derive(Debug, Eq)]
|
||||
pub struct Section {
|
||||
+3
-5
@@ -4,12 +4,10 @@ mod backend;
|
||||
mod cmd;
|
||||
mod core;
|
||||
mod env;
|
||||
mod group;
|
||||
mod package;
|
||||
mod grouping;
|
||||
mod path;
|
||||
mod section;
|
||||
mod ui;
|
||||
|
||||
pub use crate::core::Pacdef;
|
||||
pub use group::Group;
|
||||
pub use package::Package;
|
||||
pub use crate::grouping::Group;
|
||||
pub(crate) use crate::grouping::Package;
|
||||
|
||||
Reference in New Issue
Block a user