mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:59:36 +00:00
620 B
620 B
dcr run
Builds the project and runs the resulting binary.
Usage
dcr run
dcr run --debug
dcr run --release
Behavior
- Validates
dcr.toml. - Reads
package.name,build.kind, and optionalbuild.target. - Runs the same build flow as
dcr build. - Executes the built artifact path for the selected profile.
Restrictions
- If
build.kind = "staticlib",runexits with error. - The profile is selected from the first argument.
On build failure
dcr run attempts to launch an existing binary from the same profile if present; otherwise it reports that code errors must be fixed.