option

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	InterfacePackage
	Target          string `arg:"required,-t,--target" help:"target directory path of the interface source code file. is required"`
	Output          string `arg:"-o,--output" help:"output file path.default is the same as the target interface source code file"`
	Package         string `arg:"-p,--package" help:"package name of the generated code. default is the same as the target interface source code file"`
	UseTxMiddleware bool   `arg:"-x,--use-tx-middleware" help:"generate transaction middleware. default is false"`
}

func NewArguments

func NewArguments() Arguments

func (*Arguments) Validate

func (a *Arguments) Validate() error

type InterfacePackage

type InterfacePackage struct {
	Name string `arg:"-n,--interface-package-name" help:"package name of the target interface source code file"`
	Path string `arg:"-l,--interface-package-path" help:"package path of the target interface source code file"`
}

Jump to

Keyboard shortcuts

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