Add sub command 'tree' to show dependencies

This commit is contained in:
2023-08-29 17:34:02 +02:00
parent 37c8b47d1f
commit 103075ab78
11 changed files with 272 additions and 7 deletions

View File

@@ -117,6 +117,13 @@ fn main() -> Result<(), Box<dyn Error>> {
}
data.print_list();
}
Command::Tree { inputfile, sorted } => {
let mut data = read_inputfile(inputfile)?;
if sorted {
data.sorted()
}
OnkostarEditor::print_tree(&data);
}
Command::Modify {
inputfile,
profile,