Filter printed elements for list and tree sub command

This commit is contained in:
2023-09-04 13:24:28 +02:00
parent ce8dca1c10
commit d30c2991c0
4 changed files with 76 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ pub enum Command {
help = "Sortiere Kataloge und Formulare nach Name (Optional)"
)]
sorted: bool,
#[arg(long = "filter", help = "Filtere Ausgabe nach Name (Optional)")]
filter: Option<String>,
},
#[command(about = "Zeigt Kataloge und Formulare mit Revision und Abhängigkeiten an.")]
Tree {
@@ -56,6 +58,8 @@ pub enum Command {
help = "Sortiere Kataloge und Formulare nach Name (Optional)"
)]
sorted: bool,
#[arg(long = "filter", help = "Filtere Ausgabe nach Name (Optional)")]
filter: Option<String>,
},
#[command(about = "Modifiziert die angegebene Datei anhand der Profildatei")]
Modify {