Add seperated excution options for init.py#2197
Merged
cb-github-robot merged 3 commits intocloud-barista:mainfrom Nov 3, 2025
Merged
Add seperated excution options for init.py#2197cb-github-robot merged 3 commits intocloud-barista:mainfrom
cb-github-robot merged 3 commits intocloud-barista:mainfrom
Conversation
Signed-off-by: Seokho Son <shsongist@gmail.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the initialization scripts by adding modular operation support and comprehensive help documentation. Users can now selectively run individual initialization steps (credentials, assets, or pricing) instead of being forced to run all operations.
- Added command-line options to run initialization steps independently (
--credentials-only,--load-assets-only,--fetch-price-only) - Enhanced help messages and usage documentation in both shell and Python scripts
- Refactored code to conditionally execute operations based on user-specified flags
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| init/init.sh | Added comprehensive help message with usage examples, options, and environment variable documentation |
| init/init.py | Refactored to support modular execution with new command-line arguments, improved help text, and conditional operation logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Seokho Son <shsongist@gmail.com>
Signed-off-by: Seokho Son <shsongist@gmail.com>
Member
Author
|
/approve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the following additional options to init.py .
echo "This script initializes CB-Tumblebug by registering credentials,"
echo "loading assets (specs and images), and fetching price information."
echo ""
echo "Options:"
echo " -h, --help Show this help message"
echo " -y, --yes Automatically answer yes to prompts"
echo " --credentials, --credentials-only"
echo " Register cloud credentials only"
echo " --load-assets, --load-assets-only"
echo " Load common specs and images only"
echo " --fetch-price, --fetch-price-only"
echo " Fetch price information only"