Skip to content
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: extract remove service #352

Merged
merged 2 commits into from
May 30, 2024
Merged

feat: extract remove service #352

merged 2 commits into from
May 30, 2024

Conversation

ComradeVanti
Copy link
Collaborator

@ComradeVanti ComradeVanti commented May 30, 2024

This change extracts all business logic out of the remove command into its own service function. The cmd function is now only responsible for cli related logic.

This change also slightly changes the behavior of the remove command.

  • Logs are rewritten
  • Information about removed packages is printed all at once at the end when the atomic remove process is complete. Previously messages about removed packages were printed as soon as the in-memory manifest was modified. The command could still fail however and then these logs would be confusing.

This change extracts all business logic out of the remove command into its own service function. The cmd function is now only responsible for cli related logic.

This change also slightly changes the behavior of the remove command.
- Logs are rewritten
- Information about removed packages is printed all at once at the end when the atomic remove process is complete. Previously messages about removed packages were printed as soon as the in-memory manifest was modified. The command could still fail however and then these logs would be confusing.
@ComradeVanti ComradeVanti merged commit 61ebed9 into master May 30, 2024
3 checks passed
@ComradeVanti ComradeVanti deleted the remove-service branch May 30, 2024 08:06
github-actions bot pushed a commit that referenced this pull request May 30, 2024
# [2.3.0](2.2.0...2.3.0) (2024-05-30)

### Features

* extract remove service ([#352](#352)) ([61ebed9](61ebed9))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant