bootimage 0.5.0-alpha-00

Tool to create a bootable OS image from a kernel binary.
use std::process;

const HELP: &str = include_str!("help.txt");
const BUILD_HELP: &str = include_str!("build_help.txt");
const RUN_HELP: &str = include_str!("run_help.txt");
const TEST_HELP: &str = include_str!("test_help.txt");

pub(crate) fn help() {
    print!("{}", HELP);
}

pub(crate) fn build_help() {
    print!("{}", BUILD_HELP);
}

pub(crate) fn run_help() {
    print!("{}", RUN_HELP);
}

pub(crate) fn test_help() {
    print!("{}", TEST_HELP);
}

pub(crate) fn no_subcommand() -> ! {
    println!("Please invoke `bootimage` with a subcommand (e.g. `bootimage build`).");
    println!();
    println!("See `bootimage --help` for more information.");
    process::exit(1);
}