summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parentf9476c25b0d6bdb9ea40ac0a89ba0903e78f1a7e (diff)
Fix `entrypoint` field in ContainerOptions (#269)
* Fix `entrypoint` field in ContainerOptions * Update CHANGELOG Co-authored-by: Doug Tangren <d.tangren@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/builder.rs10
1 files changed, 7 insertions, 3 deletions
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
}