brc-0.1.0 has been yanked.
A fast and easy console library.
This provides a basic, minimal framework over making a console for applications.
Syntax
command string_argument "string argument with spaces" 33 4.8
Note that 33 and 4.8 are two different types, Integer and Float.
Examples
use *;
Writing functions that work with the Console
Every function that you write to be used in the Console must follow this signature: fn(mut args: brc::lex::Arguments) -> Result<(), brc::error::Error>.
To use user-inputted arguments in your function, you must continually pop the command arguments from the args parameter, and then convert them into the type you expect.
Example below: