libghost 0.4.6

The Rust, library-format distribution of libghost, a multi-language PROS (VEX robotics) template.
Documentation
extern crate alloc;

use alloc::{format, string::String};
use pros::prelude::println;

/// SUPPORT US and print our branding!
///
/// # Arguments
///
/// * `short` - Removes the extra text that may not be necessary in most cases.
///
/// # Example
///
/// ```
/// branding(false);
/// ```
pub fn branding(short: bool) {
    let extra_text = if short {
        "\n"
    } else {
        r#"
     This project was built using the libghost ghost-rs-template.
           Like ghost-rs (like, a lot)? Support our dev!
                https://www.patreon.com/Minicrit

TIP: Disable this message by removing the branding(short) call in comp_init()

        "#
    };
    let text: String = format!(
        r#"
                                                           .-------.
  ooooooo8 ooooo ooooo  ooooooo    oooooooo8 ooooooooooo   | 242   |
o888    88  888   888 o888   888o 888        88  888  88   |   G   |
888    oooo 888ooo888 888     888  888oooooo     888       | GHOST |
888o    88  888   888 888o   o888         888    888       '-------'
 888ooo888 o888o o888o  88ooo88   o88oooo888    o888o    
{}
 "#,
        extra_text
    );

    println!("{}", text);
}