Skip to content

Add --update flag to sync.sh for one-step Code Cannon updates #57

Description

@sebastientaggart

Currently, updating Code Cannon in a project requires three steps: cd into the CodeCannon checkout, git pull, cd back, then run sync.sh. This is awkward and easy to get wrong.

Add a --update flag to sync.sh that self-updates the CodeCannon checkout before running the normal sync, so users can update in a single command from their project root.

To keep things safe for expert users who may be on a non-default branch, the update should only run when the CodeCannon repo is on the main branch. If it's on any other branch, print a clear message and stop — don't try to guess what the expert user wants.

Metadata

Metadata

Labels

enhancementNew feature or requestready-for-qaIssue is ready to be QA tested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions