blackship 0.5.0

A FreeBSD jail manager with state machine control
1
2
3
4
5
6
7
8
9
10
11
//! Placeholder web UI command: read-only, loopback only

use crate::error::Result;
use crate::manifest::BlackshipConfig;

pub fn handle(config: Option<&BlackshipConfig>, listen: &str) -> Result<()> {
    let addr = crate::ui::listen_addr(listen)?;
    let rt = tokio::runtime::Runtime::new()?;

    rt.block_on(crate::ui::serve(addr, config))
}