normalizer

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMDFormat

func CMDFormat(root *cobra.Command, spec *loads.Document)

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

func FlagFormat

func FlagFormat(root *cobra.Command)

FlagFormat 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