normalizer

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeCommands added in v0.2.7

func NormalizeCommands(root *cobra.Command, doc *loads.Document) error

NormalizeCommands formats the cobra command according to the annotations specified in the openapi specification

func NormalizeFlags added in v0.2.7

func NormalizeFlags(root *cobra.Command)

NormalizeFlags formats the cobra flags according to the

Types

type CobraAnnotation

type CobraAnnotation struct {
	Use     string
	Aliases []string
	Short   string
	Example string
	Hidden  bool
}

func GetCobraTag

func GetCobraTag(name string) CobraAnnotation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL