summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Kępka <46892771+wojciechkepka@users.noreply.github.com>2021-02-21 13:51:12 +0100
committerGitHub <noreply@github.com>2021-02-21 07:51:12 -0500
commit4efa39b3ec89cb67c89d635b04fa7fae4682c09b (patch)
tree58e6f685d196086242af97d33f5a9a365a2b1a70
parentf9476c25b0d6bdb9ea40ac0a89ba0903e78f1a7e (diff)
Fix `entrypoint` field in ContainerOptions (#269)
* Fix `entrypoint` field in ContainerOptions * Update CHANGELOG Co-authored-by: Doug Tangren <d.tangren@gmail.com>
-rw-r--r--CHANGELOG.md4
-rw-r--r--src/builder.rs10
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
}