cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: BSD-2-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Jar, _ = base64.StdEncoding.DecodeString(``)
View Source
var Version string

Functions

func CodeGenerator

func CodeGenerator() *cobra.Command

func ExecuteJar

func ExecuteJar(params JarStdinParameters) ([]byte, error)

func GenerateAllImportsTest

func GenerateAllImportsTest(outputDir string, codeFiles []*utils.CodeFile) error

func GenerateCode

func GenerateCode(specBytes []byte, outputDir string) error

func ReadSpec

func ReadSpec(args []string) ([]byte, error)

Types

type GoRestliSpec

type GoRestliSpec struct {
	DataTypes []struct {
		Enum            *types.Enum            `json:"enum"`
		Fixed           *types.Fixed           `json:"fixed"`
		Record          *types.Record          `json:"record"`
		ComplexKey      *types.ComplexKey      `json:"complexKey"`
		StandaloneUnion *types.StandaloneUnion `json:"standaloneUnion"`
		Typeref         *types.Typeref         `json:"typeref"`
	} `json:"dataTypes"`
	Resources []resources.Resource
}

func (*GoRestliSpec) GenerateClientCode

func (s *GoRestliSpec) GenerateClientCode() (codeFiles []*utils.CodeFile)

func (*GoRestliSpec) UnmarshalJSON

func (s *GoRestliSpec) UnmarshalJSON(data []byte) error

type JarStdinParameters

type JarStdinParameters struct {
	ResolverPath               string   `json:"resolverPath"`
	RestSpecPaths              []string `json:"restSpecPaths"`
	NamedDataSchemasToGenerate []string `json:"namedDataSchemasToGenerate"`
	RawRecords                 []string `json:"rawRecords"`
}

Jump to

Keyboard shortcuts

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