feat(user): add fuzzy, match, range flags for commands#682
feat(user): add fuzzy, match, range flags for commands#682Mujib-Ahasan wants to merge 2 commits intogoharbor:mainfrom
Conversation
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
|
Hello @NucleoFusion, this is yet to be tested, but I am really confused to find the keys to be used in list subcommands. Changes have been made for |
|
@Mujib-Ahasan the keys are the fields/keys in the JSON object they return. They are available on the demo.goharbor.io swagger api |
|
Great, Thank you @NucleoFusion! |
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
|
@NucleoFusion , PTAL at these changes. after that I will do some tests against my local setup. |
All these are supported via the |
(only for list subcommand) @NucleoFusion PTAL. |
|
Have you done all those? In the checklist that have CLI present? |
|
I did only for those which has --query flag (--query in the bracket in my prev comment) . I have not worked in CLI which do not have --query flag ( ex:- https://github.com/goharbor/harbor-cli/blob/main/cmd/harbor/root/webhook/list.go). |
Description
Only
harbor-cli project listandharbor-cli label listsupport fuzzy, match, and range flags. All the other commands does not follow this way to query resource.This PR has been raised to make fuzzy, match, range flag available to other required commands(eg: user, artifact, instance, registry etc).
Resolves #674