# bevy_console [![Check](https://github.com/RichoDemus/bevy-console/actions/workflows/build.yaml/badge.svg)](https://github.com/RichoDemus/bevy-console/actions/workflows/build.yaml) A simple *Half-Life* inspired console with support for argument parsing powered by [`clap`](https://docs.rs/clap/latest/clap/).
## Usage Add `ConsolePlugin` and optionally the resource `ConsoleConfiguration`. ```rust, ignore use bevy::prelude::*; use bevy_console::{ConsoleConfiguration, ConsolePlugin}; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugin(ConsolePlugin) .insert_resource(ConsoleConfiguration { // override config here ..Default::default() }); } ``` Create a console command struct and system and add it to your app with `.add_console_command`. Commands are created like `clap` commands with an additional `CommandName` trait derived via the `ConsoleCommand` derive. Add [doc comments](https://doc.rust-lang.org/rust-by-example/meta/doc.html#doc-comments) to your command to provide help information in the console. ```rust, ignore use bevy::prelude::*; use bevy_console::{reply, AddConsoleCommand, ConsoleCommand, ConsolePlugin}; use clap::Parser; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugin(ConsolePlugin) .add_console_command::