docs.rs failed to build bevy_console-0.13.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bevy_console-0.11.1
bevy_console
A simple Half-Life inspired console with support for argument parsing powered by clap
.
Features
- Command parsing with
clap
- Command history
- Command completion
- Support for ansii colors
- Customizable key bindings
- Customizable theme
- Supports capturing Bevy logs to console
Usage
Add ConsolePlugin
and optionally the resource ConsoleConfiguration
.
use *;
use ;
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 to your command to provide help information in the console.
use *;
use ;
use Parser;
/// Example command
Examples can be found in the /examples directory.
wasm
Should work in wasm, but you need to disable default features.