Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPluginMode = "KITEX_PLUGIN_MODE"
EnvPluginMode is an environment that kitex uses to distinguish run modes.
Variables ¶
This section is empty.
Functions ¶
func LookupTool ¶ added in v0.9.0
LookupTool returns the compiler path found in $PATH; if not found, returns $GOPATH/bin/$tool
func ValidateCMD ¶ added in v0.9.0
func ValidateCMD(path, idlType string)
ValidateCMD check if the path exists and if the version is satisfied
Types ¶
type ExtraFlag ¶
type ExtraFlag struct {
// apply may add flags to the FlagSet.
Apply func(*flag.FlagSet)
// check may perform any value checking for flags added by apply above.
// When an error occur, check should directly terminate the program by
// os.Exit with exit code 1 for internal error and 2 for invalid arguments.
Check func(*Arguments)
}
ExtraFlag is designed for adding flags that is irrelevant to code generation.
Click to show internal directories.
Click to hide internal directories.