cyamli

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Overview

Code generated by github.com/Jumpaku/cyamli v1.1.5, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) (code int)

func GetDoc

func GetDoc(subcommands []string) string

func Run

func Run(cli CLI, args []string) error

Types

type CLI

type CLI struct {
	Generate CLI_Generate

	List CLI_List

	Validate CLI_Validate

	FUNC Func[CLI_Input]
}

func NewCLI

func NewCLI() CLI

type CLI_Generate

type CLI_Generate struct {
	Dart CLI_GenerateDart

	Docs CLI_GenerateDocs

	Golang CLI_GenerateGolang

	Python3 CLI_GeneratePython3

	FUNC Func[CLI_Generate_Input]
}

type CLI_GenerateDart added in v1.1.4

type CLI_GenerateDart struct {
	FUNC Func[CLI_GenerateDart_Input]
}

type CLI_GenerateDart_Input added in v1.1.4

type CLI_GenerateDart_Input struct {
	Opt_Help bool

	Opt_OutPath string

	Opt_SchemaPath string
}

type CLI_GenerateDocs

type CLI_GenerateDocs struct {
	FUNC Func[CLI_GenerateDocs_Input]
}

type CLI_GenerateDocs_Input

type CLI_GenerateDocs_Input struct {
	Opt_All bool

	Opt_Format string

	Opt_Help bool

	Opt_OutPath string

	Opt_SchemaPath string

	Arg_Subcommands []string
}

type CLI_GenerateGolang

type CLI_GenerateGolang struct {
	FUNC Func[CLI_GenerateGolang_Input]
}

type CLI_GenerateGolang_Input

type CLI_GenerateGolang_Input struct {
	Opt_Help bool

	Opt_OutPath string

	Opt_Package string

	Opt_SchemaPath string
}

type CLI_GeneratePython3

type CLI_GeneratePython3 struct {
	FUNC Func[CLI_GeneratePython3_Input]
}

type CLI_GeneratePython3_Input

type CLI_GeneratePython3_Input struct {
	Opt_Help bool

	Opt_OutPath string

	Opt_SchemaPath string
}

type CLI_Generate_Input

type CLI_Generate_Input struct {
	Opt_Help bool
}

type CLI_Input

type CLI_Input struct {
	Opt_Help bool

	Opt_Version bool
}

type CLI_List

type CLI_List struct {
	FUNC Func[CLI_List_Input]
}

type CLI_List_Input

type CLI_List_Input struct {
	Opt_Help bool

	Opt_SchemaPath string
}

type CLI_Validate added in v1.1.0

type CLI_Validate struct {
	FUNC Func[CLI_Validate_Input]
}

type CLI_Validate_Input added in v1.1.0

type CLI_Validate_Input struct {
	Opt_Help bool

	Opt_SchemaPath string
}

type Func

type Func[Input any] func(subcommand []string, input Input, inputErr error) (err error)

Jump to

Keyboard shortcuts

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