pub struct ShellCommand {
pub program: String,
pub args: Vec<String>,
pub cwd: Option<PathBuf>,
}Expand description
The command that opens an interactive shell into a machine: the runner builds it (it alone knows the runtime — the Compose project and files, the Vagrant define), the embedder runs it in its own terminal. Addresses the box by service or define name, never a guessed container.
Fields§
§program: StringThe program to run (docker, vagrant).
args: Vec<String>Its arguments.
cwd: Option<PathBuf>The folder to run it in (the run’s folder).
Trait Implementations§
Source§impl Clone for ShellCommand
impl Clone for ShellCommand
Source§impl Debug for ShellCommand
impl Debug for ShellCommand
Auto Trait Implementations§
impl Freeze for ShellCommand
impl RefUnwindSafe for ShellCommand
impl Send for ShellCommand
impl Sync for ShellCommand
impl Unpin for ShellCommand
impl UnsafeUnpin for ShellCommand
impl UnwindSafe for ShellCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more