mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:28:30 +00:00
- Added support for registry-based dependencies in the dependencies section. - Updated the package section to include a project type field. - Introduced a new CLI command `dcr setup` to load and display registry configurations. - Implemented a new module for handling registry operations, including loading and resolving packages from registries. - Enhanced the build process to handle library packaging, including copying headers and libraries to the appropriate target directories. - Updated the CLI to support building library packages and added tests for library package builds. - Improved error handling and output messages during dependency resolution and package fetching.
31 lines
766 B
Markdown
31 lines
766 B
Markdown
# CLI reference
|
|
|
|
## Command list
|
|
|
|
```text
|
|
dcr new <name>
|
|
dcr init
|
|
dcr setup
|
|
dcr add <name> <source>(optional)
|
|
dcr build [--debug|--release]
|
|
dcr run [--debug|--release]
|
|
dcr clean [--debug|--release] [--all]
|
|
dcr gen <subcommand>
|
|
dcr --help
|
|
dcr --version
|
|
dcr --update
|
|
```
|
|
|
|
## Notes on argument parsing
|
|
|
|
- `build`/`run` parse flags in any order (`--debug|--release`, `--force`, `--clean`) and reject duplicates.
|
|
- `new` requires exactly one argument.
|
|
- `init` and `--update` do not accept extra arguments.
|
|
- `clean` accepts `--debug|--release` and optional `--all`.
|
|
- `gen` supports `project-info`, `compile-commands`, `vscode`, `clion`.
|
|
|
|
## Exit behavior overview
|
|
|
|
- Successful command execution returns `0`.
|
|
- Validation/build/runtime failures return non-zero status.
|