rpg_chat_command_parser/
lib.rs

1//! # RPG Chat Command Parser
2//!
3//! This binary provides a command-line interface (CLI) for parsing RPG-style chat commands.
4//!
5//! ## Usage
6//!
7//! You can run the binary with the following subcommands:
8//!
9//! ### Parse a Single Command
10//! ```sh
11//! rpg-chat-command-parser parse "<command>"
12//! ```
13//! Example:
14//! ```sh
15//! rpg-chat-command-parser parse "/cast fireball --power=high"
16//! ```
17//!
18//! ### Parse Commands from a File
19//! ```sh
20//! rpg-chat-command-parser file "<file_path>"
21//! ```
22//! Example:
23//! ```sh
24//! rpg-chat-command-parser file commands.txt
25//! ```
26//!
27//! ### Display Additional Help Information
28//! ```sh
29//! rpg-chat-command-parser info
30//! ```
31//!
32//! ## Installation
33//! - Clone the repository: `git clone https://github.com/Emril44/rpg-chat-command-parser.git`
34//! - Build the project: `cargo build --release`
35//! - Run the binary: `./target/release/rpg-chat-command-parser`
36pub mod errors;
37pub mod parser;
38
39pub use errors::CommandError;
40pub use parser::{parse_command, ParsedCommand};