Skip to main content

Crate miniximg_shell

Crate miniximg_shell 

Source
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§

ShellOptions
Configuration passed to crate::run.

Functions§

run
Run the interactive shell against the configured image, returning when the user issues exit, quit, or Ctrl-D on an empty line.