Skip to content

enhancement: Command specific doc / description for opts.Q #718

@NucleoFusion

Description

@NucleoFusion

Currently the opts.Q Flag is very difficult to understand. Even in the goharbor swagger docs the description is not easy to understand.
Coupled with the fact that each command has a new set of validKeys.

I wanted to introduce a BuildQueryParamDocs(vaildKeys []string) string.
Which will take validKeys and create a multiline string properly formatted with explanation on how each method of querying works.

In this I wanted to know how should I add this? Should it just be like an addition / sprintf in the Long: in Cobra?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions