init: archlens — architecture diagram generator
Some checks failed
CI / Check / Test (push) Failing after 1m24s
Some checks failed
CI / Check / Test (push) Failing after 1m24s
Hex arch + DDD, tree-sitter parsing, Mermaid/ASCII output. Supports Rust + Python. 92 tests. CI, diff, --check for staleness detection.
This commit is contained in:
25
crates/domain/src/value_objects/output/output_config.rs
Normal file
25
crates/domain/src/value_objects/output/output_config.rs
Normal file
@@ -0,0 +1,25 @@
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct OutputConfig {
|
||||
split_by_module: bool,
|
||||
output_path: Option<String>,
|
||||
}
|
||||
|
||||
impl OutputConfig {
|
||||
pub fn with_split_by_module(mut self, split: bool) -> Self {
|
||||
self.split_by_module = split;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_output_path(mut self, path: String) -> Self {
|
||||
self.output_path = Some(path);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn split_by_module(&self) -> bool {
|
||||
self.split_by_module
|
||||
}
|
||||
|
||||
pub fn output_path(&self) -> Option<&str> {
|
||||
self.output_path.as_deref()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user