mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 17:19:37 +00:00
- `dcr gen` command for IDE integration and build tool support
- `dcr gen project-info`: Output project metadata as JSON
- `dcr gen compile-commands`: Generate `compile_commands.json` for clangd and clang-tidy
- `dcr gen vscode`: Generate VS Code `.vscode/` integration (launch.json, tasks.json, settings.json)
- `dcr gen clion`: Generate JetBrains CLion `.idea/` integration (run configurations, build targets)
- Full workspace support for all `gen` subcommands
28 lines
615 B
Markdown
28 lines
615 B
Markdown
# dcr clean
|
|
|
|
Removes build artifacts in `target/`.
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
dcr clean
|
|
dcr clean --debug
|
|
dcr clean --release
|
|
dcr clean --all
|
|
dcr clean --release --all
|
|
```
|
|
|
|
## Behavior
|
|
|
|
- Without arguments: removes entire `target/`.
|
|
- With profile: removes only `target/<profile>/`.
|
|
- With `--all`: also cleans all workspace members.
|
|
- Additionally removes paths from `build.clean` if configured.
|
|
- `build.clean` supports `{profile}` and version placeholders.
|
|
|
|
## Validation
|
|
|
|
- `dcr.toml` must exist.
|
|
- Unknown flags are treated as error.
|
|
- If `target` or selected profile directory does not exist, command prints a warning.
|