diff options
author | softprops <d.tangren@gmail.com> | 2016-01-03 18:06:21 -0500 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2016-01-03 18:06:21 -0500 |
commit | 455a1482d92a26e109ccb0b723136c09bb4eff2e (patch) | |
tree | 3d3044f439df69315bf15b4be700acf0044a5e4d /examples/containers.rs | |
parent | 00b269ffcfcbacd2c32fbdfe98e916f5260c8349 (diff) |
migrate builder interfaces into interfaces that just build options to improve testability
Diffstat (limited to 'examples/containers.rs')
-rw-r--r-- | examples/containers.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/containers.rs b/examples/containers.rs index e4df6b3..60990a4 100644 --- a/examples/containers.rs +++ b/examples/containers.rs @@ -1,15 +1,11 @@ extern crate shiplift; -use shiplift::{ContainerFilter, Docker}; +use shiplift::Docker; fn main() { let docker = Docker::new(); for c in docker.containers(). - list() - .sized() - .filter(vec![ - ContainerFilter::Label("foo".to_owned(), "bar".to_owned()) - ]).build().unwrap() { + list(&Default::default()).unwrap() { println!("container -> {:?}", c) } } |