Skip to main content

enter_ephemeral_shell

Function enter_ephemeral_shell 

Source
pub fn enter_ephemeral_shell(
    package_sources: &[String],
    run_cmd: Option<String>,
    verbose: bool,
    _plugin_manager: Option<&PluginManager>,
) -> Result<()>
Expand description

Enters an ephemeral shell with the given packages installed.

§Errors

Returns an error if:

  • Dependency resolution fails.
  • Package installation fails.
  • Temporary directory creation fails.
  • Symlinking binary files fails.
  • Executing the shell command fails.

§Panics

Panics if a mutex lock is poisoned.