capsid-task 0.1.0-alpha.1

The command line with which the Capsid binary re-executes itself as a supervisor, preparer, or network helper.
Documentation
use std::ffi::OsString;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("missing internal command name")]
    MissingName,

    #[error("unknown internal command {0:?}")]
    UnknownName(OsString),

    #[error("unexpected internal command argument {0:?}")]
    Unexpected(OsString),

    #[error("internal command flag --{0} is missing")]
    Missing(&'static str),

    #[error("internal command flag --{0} has an invalid value")]
    Invalid(&'static str),
}

pub type Result<T, E = Error> = std::result::Result<T, E>;