use crate::commands::ColorSupport;
use std::path::PathBuf;
use tracing::instrument;
#[derive(Debug)]
pub struct ListData {
pub(crate) target: PathBuf,
pub(crate) packages: Vec<PathBuf>,
pub(crate) dot_file_prefix: Option<String>,
pub(crate) color_support: ColorSupport,
}
impl ListData {
#[must_use]
#[instrument(level = "trace")]
pub fn new(
target: PathBuf,
packages: Vec<PathBuf>,
dot_file_prefix: Option<String>,
color_support: ColorSupport,
) -> Self {
Self {
target,
packages,
dot_file_prefix,
color_support,
}
}
}