goharbor / harbor-cli

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

Enhance `registry create` Command #86

Closed bupd closed 1 month ago

bupd commented 3 months ago

Overview:

This PR improves the user experience of the registry create command by fetching and presenting default registries available. This enhancement guides users to select the correct registry provider, reducing the likelihood of errors and streamlining the setup process.

Problem:

Previously, users had to manually enter registry provider details, which often led to errors and a frustrating experience. Incorrect registry configurations could result in errors that were difficult to diagnose and fix.

Solution:

To address this issue, I have implemented a feature that fetches a list of registry providers in harbor and presents them to the user during the registry create process. This allows users to select a registry from a predefined list, ensuring correct configuration and reducing errors.

Changes Made:

Screenshots:

Before:

Before

After:

after

bupd commented 3 months ago

Updated:

afterReg

bupd commented 2 months ago

looks good to merge @Vad1mo

bupd commented 2 months ago

Resolved requested Changes.

amands98 commented 1 month ago

please run gofmt to lint the code.