diff options
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | src/builder.rs | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e550db5..631142d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.8.0 + +* `ContainerOptionsBuilder::entrypoint` now correctly takes an `IntoIterator<Item = AsRef<str>>` instead of `&str` [#269](https://github.com/softprops/shiplift/pull/269) + # 0.7.0 * async-await support [#229](https://github.com/softprops/shiplift/pull/229) diff --git a/src/builder.rs b/src/builder.rs index 982b3ba..01a2d76 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -879,10 +879,14 @@ impl ContainerOptionsBuilder { self } - pub fn entrypoint( + pub fn entrypoint<I, S>( &mut self, - entrypoint: &str, - ) -> &mut Self { + entrypoint: I, + ) -> &mut Self + where + I: IntoIterator<Item = S> + Serialize, + S: AsRef<str>, + { self.params.insert("Entrypoint", json!(entrypoint)); self } |