mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 15:30:49 +00:00
922 B
922 B
CLI reference
Command list
dcr new <name>
dcr init
dcr setup
dcr add <name> <source>(optional)
dcr build [--debug|--release] [--target <triple>]
dcr run [--debug|--release]
dcr clean [--debug|--release] [--all]
dcr tree
dcr test
dcr gen <subcommand>
dcr --help
dcr --version
dcr --update
Notes on argument parsing
build/runparse flags in any order (--debug|--release,--force,--clean,--verbose) and reject duplicates.newrequires exactly one argument.initand--updatedo not accept extra arguments.cleanaccepts--debug|--releaseand optional--all.gensupportsproject-info,compile-commands,vscode,clion.treeshows a dependency tree (similar tocargo tree).test/testsruns the project's tests.
Exit behavior overview
- Successful command execution returns
0. - Validation/build/runtime failures return non-zero status.