spacetimedb-cli 1.1.1

A command line interface for SpacetimeDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum CliError {
    #[error("Config error: The option `{key}` not found")]
    Config { key: String },
    #[error("Config error: The option `{key}` is not a `{kind}`, found: `{type}: {value}`",
        type=found.type_name(),
        value=found
    )]
    ConfigType {
        key: String,
        kind: &'static str,
        found: Box<toml_edit::Item>,
    },
}