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
//! `lpwd` — print only the host-side cwd.

use anyhow::Result;

use crate::session::Session;

pub const NAME: &str = "lpwd";
pub const ALIASES: &[&str] = &[];
pub const SUMMARY: &str = "print the host-side working directory";
pub const USAGE: &str = "lpwd";

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