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

Sign up
Appearance settings

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

Open
Assignees
Labels
topic: CLIRelated to the command line interface topic: codeRelated to content of the project itself type: enhancementProposed improvement
@umbynos

Description

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 interface topic: codeRelated to content of the project itself type: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /