From 0b0188bd30534de842cfd9c85d840a551e90e7a0 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 29 Aug 2023 18:07:12 +0200 Subject: [PATCH] Print info_xml content if using diff sub command --- src/model/onkostar_editor.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/model/onkostar_editor.rs b/src/model/onkostar_editor.rs index 6d78f55..8e2748c 100644 --- a/src/model/onkostar_editor.rs +++ b/src/model/onkostar_editor.rs @@ -157,6 +157,22 @@ impl OnkostarEditor { } pub fn print_diff(&mut self, other: &mut Self, strict: bool) { + println!(); + + println!( + "Datei A wurde am {} mit {} in Version {} erstellt.", + style(&self.info_xml.datum_xml).yellow(), + style(&self.info_xml.name).yellow(), + style(&self.info_xml.version).yellow() + ); + + println!( + "Datei B wurde am {} mit {} in Version {} erstellt.", + style(&other.info_xml.datum_xml).yellow(), + style(&other.info_xml.name).yellow(), + style(&other.info_xml.version).yellow() + ); + self.sorted(); other.sorted();