Struct boxxy::shell::Shell [] [src]

pub struct Shell { /* fields omitted */ }

The struct that keeps track of the user interface.

Methods

impl Shell
[src]

[src]

Initializes a shell. Takes a Toolbox that contains the available commands. The toolbox is also used to configure tab completion.

use boxxy::{Shell, Toolbox};

let toolbox = Toolbox::new();
let shell = Shell::new(toolbox);

[src]

[src]

[src]

Run the input loop. This doesn't return until the shell is exited.

use boxxy::{Shell, Toolbox};

let toolbox = Toolbox::new();
let mut shell = Shell::new(toolbox);

// run the loop
shell.run();