MCPcopy Create free account
hub / github.com/Metaswitch/floki / add_environment

Method add_environment

src/command.rs:132–136  ·  view source on GitHub ↗
(mut self, var: V, bind: B)

Source from the content-addressed store, hash-verified

130 }
131
132 pub fn add_environment<V: AsRef<OsStr>, B: AsRef<OsStr>>(mut self, var: V, bind: B) -> Self {
133 self.environment.push("-e".into());
134 self.environment.push(Self::environment_mapping(var, bind));
135 self
136 }
137
138 pub fn add_docker_switch<S: AsRef<OsStr>>(mut self, switch: S) -> Self {
139 self.switches.push(switch.as_ref().into());

Callers 3

enable_forward_ssh_agentFunction · 0.80
enable_docker_in_dockerFunction · 0.80
run_floki_containerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected