Expand description
Interactive shell for Minix v1 filesystem images.
miniximg shell foo.img drops into a REPL where paths default to the
image. Anything prefixed with @ is interpreted as a host path
instead. Two working directories are tracked independently — cd
changes the image-side cwd, lcd changes the host-side one — so the
user can move around both filesystems in parallel.
use miniximg_shell::{run, ShellOptions};
use std::path::PathBuf;
run(ShellOptions {
image: PathBuf::from("disk.img"),
readonly: false,
history: None,
})?;Modifications are auto-committed to the image file as each command
returns. Pass readonly: true to refuse every mutating command.
Structs§
- Shell
Options - Configuration passed to
crate::run.
Functions§
- run
- Run the interactive shell against the configured image, returning
when the user issues
exit,quit, orCtrl-Don an empty line.