Example Update and Backup Mechanism
After upgrading boosteros, running boosteros-examples again compares the local example directory against the current SDK built-in examples by version:
-
Versions match: Prints a message that the examples are up to date and exits without modifying any files.
-
Versions differ: Enters an interactive menu with 3 options:
[b] Backup(recommended): Renames the local directory toboosteros_examples_old_<timestamp>as a backup, then exports the new version.[o] Overwrite: Overwrites the local directory directly with the new version; existing modifications will be lost.[q] Quit: Cancels the operation.
You can also skip the interactive prompt by passing command-line flags to perform the corresponding action directly:
Flag | Equivalent Option | Behavior |
|---|---|---|
|
| Force backup of the old version, then export the new version |
|
| Force overwrite of the existing directory |