Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@umbynos

Description

@umbynos
Issue body actions

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 interfaceRelated to the command line interfacetopic: codeRelated to content of the project itselfRelated to content of the project itselftype: enhancementProposed improvementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.