1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! This crate provides an interactive shell that can be used to provide a
//! basic debugger for sandboxes. It features a couple of builtin commands to
//! test eg. file access when external programs can't be used (chroots or
//! seccomp).
//!
//! It also accepts custom functions that can be included to step through
//! various stages of your sandbox.
//!
//! # Example
//!
//! ```
//! #[macro_use] extern crate boxxy;
//!
//! fn stage1(sh: &mut boxxy::Shell, args: Vec<String>) -> Result<(), boxxy::Error> {
//! shprintln!(sh, "init stage 1! {:?}", args);
//! // your code here
//! Ok(())
//! }
//!
//! fn stage2(sh: &mut boxxy::Shell, args: Vec<String>) -> Result<(), boxxy::Error> {
//! shprintln!(sh, "init stage 2! {:?}", args);
//! // your code here
//! Ok(())
//! }
//!
//! fn main() {
//! env_logger::init();
//!
//! let toolbox = boxxy::Toolbox::new().with(vec![
//! ("stage1", stage1),
//! ("stage2", stage2),
//! ]);
//! boxxy::Shell::new(toolbox).run()
//! }
//! ```
pub use crateInterface;
pub use crate;
pub use crate;
pub use ;
/// Arguments passed to builtin commands
pub type Arguments = ;