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
17
//! `exit` / `quit` — leave the shell.
//!
//! Dispatch checks the command name and converts `Ok(())` returned here
//! into `Outcome::Quit`, so the body just succeeds silently.

use anyhow::Result;

use crate::session::Session;

pub const NAME: &str = "exit";
pub const ALIASES: &[&str] = &["quit"];
pub const SUMMARY: &str = "leave the shell";
pub const USAGE: &str = "exit";

pub fn run(_session: &mut Session, _args: &[String]) -> Result<()> {
    Ok(())
}