Skip to main content

Module shell

Module shell 

Source
Expand description

High-level shell command runner and workspace utilities

Provides workspace-safe shell operations (cd, ls, pwd, etc.) and handles platform-specific shell detection.

§Shell Snapshots

This module integrates with the shell snapshot system to avoid re-running login scripts for every command. When a snapshot is available, commands can be executed with the cached environment, significantly improving startup time.

Structs§

DryRunExecutor
Executor that only logs commands without executing them
ShellOutput
Output from a shell command
ShellRunner
Represents a workspace-safe shell runner
SnapshotExecutor
Executor that uses shell snapshots for faster command execution.
SystemExecutor
Standard system command executor

Traits§

CommandExecutor
Trait for command execution strategies

Functions§

resolve_fallback_shell
Resolve the fallback shell for command execution when program is not found.