Skip to content

feat: add drogon_ctl build and run subcommands - #2557

Open
wangshuo-wsws wants to merge 5 commits into
drogonframework:masterfrom
wangshuo-wsws:feat/drogon-ctl-build-run-2529
Open

feat: add drogon_ctl build and run subcommands#2557
wangshuo-wsws wants to merge 5 commits into
drogonframework:masterfrom
wangshuo-wsws:feat/drogon-ctl-build-run-2529

Conversation

@wangshuo-wsws

Copy link
Copy Markdown
Contributor

Summary

Adds drogon_ctl build and drogon_ctl run so scaffolded projects can be compiled and started without dropping to raw cmake/make (#2529).

  • build: creates ./build if needed, runs cmake -S . -B build, then cmake --build build
  • run: builds first, locates the project(...) target binary under build/ (including multi-config Debug/Release dirs), then executes it
  • Extra args: cmake configure flags before --; application args after --
  • Appears in drogon_ctl help like other top-level commands

Test plan

  • drogon_ctl create project demo && cd demo && drogon_ctl build configures and builds
  • drogon_ctl run starts the demo binary after a successful build
  • drogon_ctl help build / drogon_ctl help run show the new detail text
  • drogon_ctl build -- -DCMAKE_BUILD_TYPE=Release forwards the flag to cmake

Closes #2529

harleywilsoneng added 5 commits August 14, 2026 18:59
Signed-off-by: harleywilsoneng <harleywilsoneng@users.noreply.github.com>
Signed-off-by: harleywilsoneng <harleywilsoneng@users.noreply.github.com>
Signed-off-by: harleywilsoneng <harleywilsoneng@users.noreply.github.com>
Signed-off-by: harleywilsoneng <harleywilsoneng@users.noreply.github.com>
Signed-off-by: harleywilsoneng <harleywilsoneng@users.noreply.github.com>
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.

Feature Request: Add build and run subcommands to drogon_ctl

1 participant