feat: advanced filtering

Allow filtering by name, image name, status, or a combination of all of the three
This commit is contained in:
Jack Wills
2024-07-24 14:20:29 +00:00
parent 91b451c6a3
commit 26a2cf55d2
5 changed files with 390 additions and 55 deletions
+4 -2
View File
@@ -175,7 +175,9 @@ mod tests {
use bollard::service::{ContainerSummary, Port};
use crate::{
app_data::{AppData, ContainerId, ContainerItem, ContainerPorts, State, StatefulList},
app_data::{
AppData, ContainerId, ContainerItem, ContainerPorts, Filter, State, StatefulList,
},
parse_args::CliArgs,
};
@@ -217,7 +219,7 @@ mod tests {
hidden_containers: vec![],
error: None,
sorted_by: None,
filter_term: None,
filter: Filter::new(),
args: gen_args(),
}
}