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 anyhow::{Context, Result};
|
||||||
|
|
||||||
use crate::section::Section;
|
use super::Section;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Group {
|
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 anyhow::{ensure, Context, Result};
|
||||||
|
|
||||||
use crate::Package;
|
use super::Package;
|
||||||
|
|
||||||
#[derive(Debug, Eq)]
|
#[derive(Debug, Eq)]
|
||||||
pub struct Section {
|
pub struct Section {
|
||||||
+3
-5
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user