Skip to content

Use Cobra's PreRun function to parse the arguments #1539

Open
@umbynos

Description

@umbynos

We already use the PreRun here
We could leverage it to consume the args given to a command before running the actual run function
https://github.com/spf13/cobra/blob/master/user_guide.md#prerun-and-postrun-hooks

Metadata

Metadata

Assignees

Labels

topic: CLIRelated to the command line interfacetopic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions