holochain_cli_sandbox/lib.rs
1#![warn(missing_docs)]
2
3//! # holochain_cli_sandbox
4//!
5//! A library and CLI to help create, run, and interact with sandboxed Holochain conductor environments,
6//! for testing and development purposes.
7//! **Warning: this is still WIP and subject to change**
8//! There's probably a few bugs. If you find one please open an [issue](https://github.com/holochain/holochain/issues)
9//! or make a PR.
10//!
11//! While this crate can be compiled into an executable, it can also be used as a library so you can create more
12//! complex sandboxes / admin calls.
13//! See the docs:
14//!
15//! ```shell
16//! cargo doc --open
17//! ```
18//!
19//! and the examples.
20
21pub use ports::force_admin_port;
22
23/// Print a message with `hc-sandbox: ` prepended
24/// and ANSI colors.
25macro_rules! msg {
26 ($($arg:tt)*) => ({
27 use ansi_term::Color::*;
28 print!("{} ", Blue.bold().paint("hc-sandbox:"));
29 println!($($arg)*);
30 })
31}
32
33pub mod bundles;
34pub mod calls;
35pub mod cli;
36#[doc(hidden)]
37pub mod cmds;
38pub mod run;
39pub mod sandbox;
40pub mod save;
41pub use cli::HcSandbox;
42
43mod ports;
44mod zome_call;