miniximg-shell 1.1.0

Interactive REPL for inspecting and editing Minix v1 filesystem images
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `pwd` — print the active image-side and host-side cwds.

use anyhow::Result;

use crate::session::Session;

pub const NAME: &str = "pwd";
pub const ALIASES: &[&str] = &[];
pub const SUMMARY: &str = "show the image and host working directories";
pub const USAGE: &str = "pwd";

pub fn run(session: &mut Session, _args: &[String]) -> Result<()> {
    println!("image: {}", session.image_cwd());
    println!("host:  {}", session.host_cwd().display());
    Ok(())
}