Skip to content

Add seperated excution options for init.py#2197

Merged
cb-github-robot merged 3 commits intocloud-barista:mainfrom
seokho-son:main
Nov 3, 2025
Merged

Add seperated excution options for init.py#2197
cb-github-robot merged 3 commits intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

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"

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings November 3, 2025 14:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Nov 3, 2025
@cb-github-robot cb-github-robot merged commit 026e2a7 into cloud-barista:main Nov 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants