mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:49:36 +00:00
40 lines
1.8 KiB
Rust
40 lines
1.8 KiB
Rust
use crate::utils::text::{BOLD_CYAN, BOLD_GREEN, printc};
|
|
|
|
pub fn help() -> i32 {
|
|
println!("DCR (Dexoron Cargo Realization)");
|
|
println!("C project manager inspired by Cargo.");
|
|
println!();
|
|
printc("USAGE:", BOLD_GREEN);
|
|
printc(" dcr <command> [options]", BOLD_CYAN);
|
|
println!();
|
|
printc("COMMANDS:", BOLD_GREEN);
|
|
println!(" new <name> Create a new project");
|
|
println!(" init Initialize the current directory as a project");
|
|
println!(" build [--profile] Build the project (default: --debug)");
|
|
println!(" run [--profile] Build and run the project (default: --debug)");
|
|
println!(" tree Display the dependency tree");
|
|
println!(" test Run project tests (alias: tests)");
|
|
println!(" clean Remove the target directory");
|
|
println!(" gen <subcommand> Generate IDE integration files");
|
|
printc("FLAGS:", BOLD_GREEN);
|
|
println!(" --help Show command help");
|
|
println!(" --update Update dcr to the latest version");
|
|
println!(" --version Show dcr version");
|
|
println!();
|
|
printc("OPTIONS:", BOLD_GREEN);
|
|
println!(" --debug Use debug profile");
|
|
println!(" --release Use release profile");
|
|
println!(" --force Force rebuild (build/run)");
|
|
println!(" --clean Clean before build (build/run)");
|
|
println!(" --all Clean all workspace members (clean)");
|
|
println!();
|
|
printc("EXAMPLES:", BOLD_GREEN);
|
|
printc(" dcr new hello", BOLD_CYAN);
|
|
printc(" dcr build --release", BOLD_CYAN);
|
|
printc(" dcr run --debug", BOLD_CYAN);
|
|
println!();
|
|
printc("TIP:", BOLD_GREEN);
|
|
println!(" Run 'dcr <command> --help' for command-specific help.");
|
|
0
|
|
}
|