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.
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.