roadster 0.8.1

A "Batteries Included" web framework for rust designed to get you moving fast.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::config::environment::Environment;
use crate::error::Error;

#[derive(Debug, Error)]
#[non_exhaustive]
pub enum CliError {
    #[error(
        "Running destructive command is not allowed in environment `{0}`. To override, provide the `--allow-dangerous` CLI arg."
    )]
    DestructiveCmdNotAllowed(Environment),

    #[error(transparent)]
    Other(#[from] Box<dyn std::error::Error + Send + Sync>),
}