basalt-api 0.2.1

Public plugin API for the Basalt Minecraft server: traits, components, events, and the plugin registration system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Command system: argument types, parsing, validation, dispatch.
//!
//! Plugins declare command arguments with types. The framework
//! handles parsing, validation, error messages, DeclareCommands
//! generation, and TabComplete responses. Built-in plugins use the
//! fluent builder API on [`PluginRegistrar`](crate::PluginRegistrar);
//! the [`Command`] trait + [`CommandRegistry`] are an alternative
//! API for plugins that prefer trait-based dispatch.

pub mod args;
mod dispatch;
mod registry;

pub use args::{
    Arg, ArgValue, CommandArg, CommandArgs, Validation, parse_args, parse_command_args,
};
pub use dispatch::Command;
pub use registry::CommandRegistry;