Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@

# ── Governance ─────────────────────────────────────────────

.PHONY: start
.PHONY: start campaign

start: ## Run the full governance session-start pipeline against this repo
@$(MAKE) -C "$(HOME)/.cursor-governance" start WS="$(CURDIR)"

campaign: ## Activate a PE campaign (proxies to governance make campaign)
@test -n "$(INTENT)" || (echo "INTENT= path to activate seed is required" >&2; exit 2)
@$(MAKE) -C "$(HOME)/.cursor-governance" campaign \
INTENT="$$(python3 -c 'from pathlib import Path; import sys; print(Path(sys.argv[1]).expanduser().resolve())' "$(INTENT)")" \
CAMPAIGN_UNTIL="$(or $(CAMPAIGN_UNTIL),execute)" \
CAMPAIGN_ARGS="$(CAMPAIGN_ARGS)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve quotes in forwarded campaign arguments

When CAMPAIGN_ARGS contains a double-quoted value with spaces—for example CAMPAIGN_ARGS='--label "hello world"'—Make substitutes it inside this recipe's surrounding double quotes, so the shell splits the result and passes world as an additional target to the recursive Make invocation. The campaign then receives a truncated argument string and fails with No rule to make target 'world'; forward this value without re-parsing it through shell quoting, such as through an exported variable.

Useful? React with 👍 / 👎.


# ── Docker Compose ─────────────────────────────────────────

dev:Start all services (detached)
Expand Down
Loading