pub struct ShellBuilder { /* private fields */ }Implementations§
Source§impl ShellBuilder
impl ShellBuilder
Sourcepub fn package(self, name: impl Into<String>) -> Self
pub fn package(self, name: impl Into<String>) -> Self
Positional PACKAGE. If Self::development was called previously,
this package is recorded as a development input (-D NAME) and the
flag resets.
pub fn packages<I, S>(self, names: I) -> Self
Sourcepub fn development(self) -> Self
pub fn development(self) -> Self
Sets a “next package is a development input” flag. guix shell -D P
brings in P’s inputs, not P itself; the flag binds to the next
Self::package call so argv order is preserved.
pub fn manifest(self, path: impl Into<PathBuf>) -> Self
pub fn pure(self) -> Self
pub fn container(self) -> Self
Sourcepub fn network(self) -> Self
pub fn network(self) -> Self
Only meaningful with Self::container.
pub fn preserve(self, regex: impl Into<String>) -> Self
Sourcepub fn command(self, cmd: impl Into<String>, args: &[&str]) -> Self
pub fn command(self, cmd: impl Into<String>, args: &[&str]) -> Self
Sets the trailing -- COMMAND ARGS.... Without this, the shell is
interactive.
pub fn spawn(self) -> Result<Operation, GuixError>
Auto Trait Implementations§
impl !RefUnwindSafe for ShellBuilder
impl !UnwindSafe for ShellBuilder
impl Freeze for ShellBuilder
impl Send for ShellBuilder
impl Sync for ShellBuilder
impl Unpin for ShellBuilder
impl UnsafeUnpin for ShellBuilder
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