forked from Plugin-JF-Onkostar/osc-variant
Add subcommand 'diff' to compare two OSC files
This commit is contained in:
@@ -26,8 +26,8 @@ use console::style;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::model::{
|
||||
apply_profile_to_form_entry, Ansichten, Entries, Filter, FormEntry, FormEntryContainer,
|
||||
Listable, MenuCategory, PlausibilityRules, Script, Sortable,
|
||||
apply_profile_to_form_entry, Ansichten, Comparable, Entries, Filter, FormEntry,
|
||||
FormEntryContainer, Listable, MenuCategory, PlausibilityRules, Script, Sortable,
|
||||
};
|
||||
use crate::model::{Haeufigkeiten, Ordner};
|
||||
use crate::profile::Profile;
|
||||
@@ -194,6 +194,16 @@ impl Sortable for DataForm {
|
||||
}
|
||||
}
|
||||
|
||||
impl Comparable for DataForm {
|
||||
fn get_name(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
|
||||
fn get_revision(&self) -> u16 {
|
||||
self.revision
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct DataCatalogues {
|
||||
|
||||
Reference in New Issue
Block a user