Skip to content

Title: Add support for updating specific packages #44

@Adithyakp86

Description

@Adithyakp86

Description: The ppmm update command currently updates all packages in project.toml to their latest versions. There is no option to update a single package or a specific subset of packages. This can be dangerous as it might upgrade packages that the user did not intend to touch, potentially breaking the project.

Solution: Update the Update variant in the Action enum (in src/project_managers.rs) to accept an optional list of package names (similar to AddPackage). Modify update_packages in src/ppm_functions.rs to restart checking/updating only the specified packages if arguments are provided. If no arguments are provided, preserve the existing "update all" behavior.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions