Skip to content

refactor: dispatch Flex overlay wrappers through one helper - #34

Merged
ROBJkE merged 1 commit into
mainfrom
cursor/recipe-wrapper-dispatcher-0ca0
Sep 14, 2026
Merged

ROBJkE merged 1 commit into
mainfrom
cursor/recipe-wrapper-dispatcher-0ca0

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Phase 1 of the wrapper shrink. The six copied deploy/*.sh names stay so CI/cron still run bash ./deploy/vps-release.sh. Implementation is one dispatcher.

What changed

  • Added deploy/lib/dispatch.sh: overlay verb maps (snapshot/restore/sync, backup/prune/restore) plus sync-runtime-local --data all rewrite.
  • Kept locator + fyrst_cli_exec in deploy/lib/fyrst-cli.sh (FYRST_CLI / PATH / install error, COMPOSE_DIR, xtrace refuse).
  • Six public scripts are thin stubs: SCRIPT_DIR, source helper, dispatch <entrypoint> "$@".
  • Overlay tests that grepped inside named scripts now assert dispatch/argv via a FYRST_CLI mock. Fixtures copy lib/*.sh.
  • Stub usage() removed; --help still chains to fyrst-cli … --help.
  • Recipe docs only (README.md, post-install.txt, root/deploy/README.md): one line that implementation is a dispatcher; operator filenames unchanged.

Behavior is unchanged: same filenames, same CLI argv, same --data all drop on local, same xtrace refuse (not on vps-release / vps-rollback).

Did not change fyrst-dev/cli, fyrst-dev/shopware-cd, or ClickUp.

Out of this PR

Phase 2 (later): delete the six stubs and the dispatcher so CI/docs call fyrst-cli only.

Open in Web Open in Cursor 

Phase 1 of the wrapper shrink: six deploy/*.sh names stay as stubs
so CI/cron still run bash ./deploy/vps-release.sh. Verb maps and the
sync-local --data all rewrite live in deploy/lib/dispatch.sh; locator
and fyrst_cli_exec stay in lib/fyrst-cli.sh.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@ROBJkE
ROBJkE marked this pull request as ready for review September 14, 2026 06:28
@ROBJkE
ROBJkE merged commit 7896029 into main Sep 14, 2026
@ROBJkE
ROBJkE deleted the cursor/recipe-wrapper-dispatcher-0ca0 branch September 14, 2026 07:15
@ROBJkE

ROBJkE commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

merged

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