-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(commands): add a repository update command #20
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe update introduces a new feature to the Runtipi CLI, allowing users to update their app store repository directly through a new Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files selected for processing (4)
- src/args.rs (1 hunks)
- src/commands/mod.rs (1 hunks)
- src/commands/repo_update.rs (1 hunks)
- src/main.rs (2 hunks)
Additional comments: 3
src/commands/mod.rs (1)
- 6-6: The addition of the
repo_update
module is correctly implemented.src/main.rs (1)
- 41-43: The integration of the
RepoUpdate
command is correctly implemented.src/args.rs (1)
- 53-54: The addition of the
RepoUpdate
variant to theRuntipiMainCommand
enum is correctly implemented.
let repo_id = env::get_env_value("APPS_REPO_ID").unwrap_or("29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903".to_string()); | ||
let path = format!("repos/{}", repo_id); | ||
let repo_path = Path::new(&path); | ||
set_current_dir(&repo_path).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace unwrap()
with proper error handling to avoid potential panics if changing the current directory fails.
Should refactor to: |
Shhh to much stuff. Maybe in a next update. |
b7c48e5
to
080f72c
Compare
Summary by CodeRabbit