Skip to content

Add -f/--full option to force full project compile from CommandRunner compile#95

Merged
DanexCodr merged 5 commits into
mainfrom
copilot/add-full-compile-flag
Apr 13, 2026
Merged

Add -f/--full option to force full project compile from CommandRunner compile#95
DanexCodr merged 5 commits into
mainfrom
copilot/add-full-compile-flag

Conversation

Copilot AI commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Compilation currently favors incremental/single-source behavior by default, with no explicit way to request a full rebuild. This change introduces an opt-in full compile flag while preserving existing default behavior.

  • CLI behavior

    • CommandRunner compile now accepts -f / --full.
    • Updated usage/help text to document:
      • CommandRunner compile <filename> [-f|--full]
  • Compile mode split

    • Default mode (unchanged): compiles only the provided source file’s unit/types.
    • Full mode (-f/--full): recursively scans src/main for .cod files and compiles discovered types into the project container.
  • Full compile semantics

    • Aggregates compile results across all discovered files.
    • Skips synthetic default units (no stable container entry path).
    • Emits concise full-compile summary + failure count warning when applicable.
# Existing behavior (unchanged)
java -cp Coderive.jar cod.runner.CommandRunner compile src/main/foo/Bar.cod

# New: force full compile
java -cp Coderive.jar cod.runner.CommandRunner compile src/main/foo/Bar.cod -f
# or
java -cp Coderive.jar cod.runner.CommandRunner compile src/main/foo/Bar.cod --full

Copilot AI and others added 5 commits April 13, 2026 04:10
Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/3a9df08f-adec-4a4e-b7e8-bb5d1b8e0d3a

Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
@DanexCodr DanexCodr marked this pull request as ready for review April 13, 2026 04:35
@DanexCodr DanexCodr merged commit 81d24cb into main Apr 13, 2026
@DanexCodr DanexCodr deleted the copilot/add-full-compile-flag branch April 13, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants