goharbor / harbor-cli

[Sandbox] Official Harbor CLI
Apache License 2.0
31 stars 37 forks source link

feat: Improve Performance of ` delete` Command with Concurrency #80

Open bupd opened 3 months ago

bupd commented 3 months ago

Fixes: #79

Description:

This PR enhances the performance of the harbor project delete command by introducing concurrency to handle multiple project deletions in parallel. The changes ensure that the command is more efficient, especially when dealing with multiple projects.

Changes:

Error Handling:

Benefits:

Testing:

Example Usage:


# Delete multiple projects concurrently
harbor project delete project1 project2 project3

# Delete a single project by prompting the user
harbor project delete
bupd commented 3 months ago

Before:

BeforeMultipleDeletion

After:

DeleteMultiple

bupd commented 2 months ago

Could you add multiple selection in the TUI.

Currently working on TUI multiple selection.

Will squash the commits.

bupd commented 2 months ago

I am planning to add the multiple TUI selection as a base component in separate PR. which can be used by multiple commands that support multiple selection and their associated action with that we can mimic the behavior of multiple select and action in TUI.

bupd commented 2 months ago

This PR is ready for review @Vad1mo